pmusaev Posted August 28, 2003 Posted August 28, 2003 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.
Anatoli Posted August 28, 2003 Posted August 28, 2003 I can imagine something like loop through layouts and print with script, maybe...
kenneth2k1 Posted August 28, 2003 Posted August 28, 2003 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
pmusaev Posted August 28, 2003 Author Posted August 28, 2003 thank ya all, i will try this asap. please update if you have any more solutions. cheers!
kenneth2k1 Posted August 28, 2003 Posted August 28, 2003 Oh yeah. Make sure that you have printing set to the current record, or you will get a layout print for every record in the file. Ken
tmanning Posted October 13, 2003 Posted October 13, 2003 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!
-Queue- Posted October 13, 2003 Posted October 13, 2003 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) ), "
kenneth2k1 Posted October 13, 2003 Posted October 13, 2003 Ok, so my solution wasn't cool enough for you guys, huh?
-Queue- Posted October 13, 2003 Posted October 13, 2003 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now