Download Origin 5 LabTalk Developer`s Guide
Transcript
Chapter 2, Advanced Origin
window based on this template, the graph page dimensions will reflect the
current printer page settings - not the page dimensions when the template
was saved. If you clear this check box, when you open a graph window
based on this template, the graph page will always reflect the page
dimensions when the template was saved - independent of the current
printer page settings.
When a graph template is saved with the "Set to Printer Dimension When
Creating Graphs From this Template" check box selected, you can use the
page -O L (for landscape) or page -O P (for portrait) commands in the
Script window to set the page orientation of a graph window that will be
opened from this template. These script commands change the current
printer driver orientation.
To update the active graph window with the current printer page setting,
run the page.dimupdate( ) method from the Script window.
Avoiding Printing Problems
For more information, see
"2.3.7 View Modes" on
page 46.
To make sure the objects on the page print in the exact location you
desire, switch to Print View mode before printing. Print View mode
uses the current printer driver to draw the screen image, and will thus
show an exact representation of the printed page.
Printing Every Graph Window
LabTalk provides the option to send script to each of a particular kind of
object. Therefore you can develop an application that sends the print
command to each graph in the current project, causing each graph to be
printed.
doc -e P {print};
To print only the graphs in the active Project Explorer folder, use:
doc -ef P {print};
Note: To print only the graphs in the active Project Explorer folder using
this command, the Project Explorer view mode must be set to View
Windows in Active Folder.
2.3 Additional Tips • 51