This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
VP PRINT
|
VP PRINT ( vpAreaName {; sheet} ) | ||||||||
Parameter | Type | Description | ||||||
vpAreaName | String |
![]() |
4D View Pro area name | |||||
sheet | Longint |
![]() |
Sheet index (current sheet if omitted) | |||||
The VP PRINT command opens a print dialog window to print vpAreaName.
Pass the 4D View Pro area to be printed in vpAreaName. The command will open the system print dialog window where the printer can be specified and the page properties can be defined.
Note: The properties defined in the print dialog window are for the printer paper, they are not the printing properties for the 4D View Pro area. Printing properties for 4D View Pro areas are defined using the VP SET PRINT INFO command. It is highly recommended that the properties for both the printer and the 4D View Pro area match, otherwise the printed document may not correspond to your expectations.
In the optional sheet parameter, you can designate a specific spreadsheet to print (counting begins at 0). If omitted, the current sheet is used by default. You can explicitly select the current spreadsheet or entire workbook with the following constants:
Constant | Value | Comment |
vk current sheet | -1 | Designates current sheet of the 4D View Pro area (default) |
vk workbook | -2 | Designates the entire workbook of the 4D View Pro area. |
Notes:
The following code:
VP PRINT("myVPArea")
Will open a print dialog window:
Product: 4D
Theme: 4D View Pro Language
Number:
9882
Created: 4D v18
4D View Pro Reference ( 4D v19)