Jump to content

Change Print Page "To" and "From" in Print Dialog


Therber

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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 7938 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.