Hi, I'm having a problem printing using a script that I wrote to automate a very tedious task.
I have records that need to be printed from different layouts. They also need to be printed in a particuliar order. So, record "1" needs layout "A", record "2" needs layout "B", and record "3" needs layout "C". (There are many many many records but I'm only dealing with three until I get the script worked out.
The script is as follows:
------------------------------
Go to Record/Request/Page [First]
Print Setup []
Loop
Perform Script [sub-scripts, "go to worksheet"]
Print [No dialog]
Go to Record/Request/Page [Exit after last, Next]
End Loop
-------------------
The sub-script above is a scipt I've used throughout the file to take you to the appropriate layout. So far it has worked fine.
What happens is three pages print. Record "1" is on layout "A". This is correct. Record "2" and "3" print on layout "A" as well. They should be on layouts "B" and "C".
It just occured to me that the scrip is not looping, and the print dialog is just printing all three records at once?
Any suggestions would be greatly appreciated!
-wing