4D v16.3PRINT RECORD |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
PRINT RECORD
PRINT RECORD
PRINT RECORD prints the current record of aTable, without modifying the current selection. The current output form is used for printing. If there is no current record for aTable, PRINT RECORD does nothing. You can print subforms with the PRINT RECORD command. This is not possible with Print form. Note: If there are modifications to the record that have not been saved, this command prints the modified field values, not the field values located on disk. By default, PRINT RECORD displays the printer dialog boxes (in 4D 32-bit versions) or the Print job dialog box (in 4D 64-bit versions) before printing. If the user cancels either of the printer dialog boxes, the command is canceled and the record is not printed. You can suppress these dialog boxes by using either the optional asterisk (*) parameter or the optional “greater than” (>) parameter:
4D Server: This command can be executed on 4D Server within the framework of a stored procedure. In this context:
Warning: Do not use the PAGE BREAK command with PRINT RECORD. PAGE BREAK is exclusively reserved for use in combination with the Print form command. The following example prints the current record of the [Invoices] table. The code is contained in the object method of a Print button on the input form. When the user clicks the button, the record is printed using an output form designed for this purpose. FORM SET OUTPUT([Invoices];"Print One From Data Entry") ` Select the right output form for printing The following example prints the same current record in two different forms. The code is contained in the object method of a Print button on the input form. You want to set customized print parameters and then use them in the two forms. PRINT SETTINGS `User defines print parameters
See also
|
PROPERTIES
Product: 4D HISTORY
Modified: 4D 2004 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||