WP USE PAGE SETUP
WP USE PAGE SETUP ( wpDoc )
Parameter | Type | Description | |
---|---|---|---|
wpDoc | Object | → | 4D Write Pro document |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The WP USE PAGE SETUP command modifies the current printer page settings based on the 4D Write Pro document attributes for page size and orientation. This command should be called just before WP PRINT in order to synchronize the current printer page settings with the 4D Write Pro document page settings.
Other settings are defined by the 4D PRINT SETTINGS command. Current print settings are set for the whole 4D session.
Example
Before printing a document, you want to reset its size and orientation to values stored in the document:
WP USE PAGE SETUP(writeProDoc)