Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7703 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

hi all, was curious as to know if it is possible in FM5.5 to print a copy of ALL layouts at one time. i have a start menu with form fields and those form fields correspond with various documents throughout my dB. so all those fields get updated by that first start menu. then i would like to have all the layouts printed, easily. any thoughts? cheers.

Posted

Yes, I was thinking the same thing.

Try this and see if it will work:

1. Create a field, global number - LayoutNum

2. Create a script:

Set Field["LayoutNum", "1"]

Loop

Go to Layout [LayoutNum] - select Layout number from field

Print[No Dialog]

Set Field ["LayoutNum" , "LayoutNum + 1"]

Exit Loop If ["LayoutNum > Status(CurrentLayoutCount)"]

End Loop

Ken

  • 1 month later...
Posted

this works great....

Set Field [h_layoutNumber", "1"]

Loop

Exit Loop If ["h_layoutNumber > 100"]

Set Field ["h_layoutNumber", "h_layoutNumber + 1"]

Go to Layout ["h_layoutNumber"]

Print [No dialog]

End Loop

h_layoutNumber is a global field set up for the purpose of this script.

100 is an arbitrary number used to represent the number of layouts you have.

If you have related files, this script will have to be set up in each of them and called from a master print script.

Good luck with your printing!

Posted

Or, to be more specific and allow for more than 100 layouts or the loop to exit before 100 is reached:

Set Field ["h_layoutNumber", "1"]

Set Field ["h_numberoflayouts", "PatternCount( LayoutIDs( Status(CurrentFileName) ), "

Posted

Actually, I didn't notice it this time around.

Except for using Status(CurrentLayoutCount) in the loop, instead of setting a global with this number before entering the loop and not forcing it to recalculate during each iteration, I would say it is cool enough for me. cool.gif

This topic is 7703 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.