November 2, 200223 yr I am attempting to print some pages from a preview where I have copied the page to be printed and pasted it into a container. (This way the page can be previewed in browse mode). When I attempt to print the page currently being viewed via a script, only the page selected when the script was created will print. Can I change the "From" and "To" page numbers in the print dialog via a script, or do I just need to make as many scripts as I need pages to print. Thank You
November 2, 200223 yr I do something similar with a script like this: Set field [gPageNo, gStartPage] Loop Exit Loop If [gPageNo>gEndPage] Enter Preview Mode Go to Layout [PreviewLayout] Go to Record/Request/Page [gPageNo][by field value] Copy Enter Browse Mode Go to Layout [PrintLayout] Paste [gContainerField] Print Set Field [gPageNo, gPageNo+1] End Loop You are then doing a separate print for each page which is not the most efficient way of doing things, but it does allow the user to control the page range.
Create an account or sign in to comment