4D v16WP PRINT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP PRINT
WP PRINT
The WP PRINT command launches a print job for the 4D Write Pro document specified in wpDoc, or adds the document to the current print job if it is called between OPEN PRINTING JOB and CLOSE PRINTING JOB (only on 64-bit versions of 4D, see below). WP PRINT uses print settings defined by the 4D PRINT SETTINGS or SET PRINT OPTION commands, except for page margins which are always based on the 4D Write Pro document page settings. WP PRINT uses current page setup options (such as page size and orientation), or those of the document if WP USE PAGE SETUP was called previously. The optional printLayout parameter can be used to set the HTML WYSIWYG view for the print output. You can pass one of the following constants from the "4D Write Pro" theme:
If printLayout is omitted, 4D Write Pro layout (0) is used by default. Note: When printed with WP PRINT, 4D Write Pro documents are always printed as in Page view mode, regardless of the View property setting for the area (see Configuring View properties). The WP PRINT command is supported in 4D 32-bit versions but with the following limitation: it cannot be called within a 4D print job started with OPEN PRINTING JOB. If the command is called in a print job on a 32-bit version of 4D, an error is returned. You want to print a 4D Write Pro document in standard or HTML wysiwyg layout depending on the value of a variable: // print using a specific layout HTML wysiwyg or 4D Write Pro Layout
See also
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Write Pro Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||