4D v13.4SET PRINT MARKER |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
SET PRINT MARKER
SET PRINT MARKER
The SET PRINT MARKER command enables the definition of the marker position during printing. Combined with the Get print marker, OBJECT MOVE or Print form commands, this command allows you to adjust the size of the print areas. SET PRINT MARKER can be used in two contexts:
Pass one of the constants of the Form Area theme in the markNum parameter:
In position, pass the new position desired, expressed in pixels. If you pass the optional * parameter, all the markers located below the marker specified in markNum will be moved the same number of pixels and in the same direction as this marker when the command is executed. Warning: in this case, any objects present in the areas located below the marker are also moved. When the * parameter is used, it is possible to position the markNum marker beyond the initial position of the markers that follow it — these latter markers will be moved simultaneously. Notes:
This complete example enables you to generate the printing of a three-column report, the height of each row being calculated on the fly according to the contents of the fields. The On Printing Detail form event was selected for the form (keep in mind that no matter what area is printed, the Print form command only generates this type of form event). The print project method is as follows: C_LONGINT(vLprint_height;$vLheight;vLprinted_height) The Print_List3 form method is as follows: C_LONGINT($l;$t;$r;$b;$fixed_wdth;$exact_hght;$l1;$t1;$r1;$b1)
|
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D 2003 SEE ALSO
Get print marker |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||