August 28, 200322 yr 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.
August 28, 200322 yr I can imagine something like loop through layouts and print with script, maybe...
August 28, 200322 yr 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
August 28, 200322 yr Author thank ya all, i will try this asap. please update if you have any more solutions. cheers!
August 28, 200322 yr 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
October 13, 200322 yr 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!
October 13, 200322 yr 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) ), "
October 13, 200322 yr 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.
Create an account or sign in to comment