![]() Make sure that no dialog box appears on the server machine (except for a specific requirement).If the printing was interrupted, the OK variable is set to 0 (zero) (i.e., the user clicked Cancel in the printing dialog box).ĤD Server: This command can be executed on 4D Server in a stored procedure. PAGE BREAK is to be used with the Print form command.Īfter a call to PRINT SELECTION, the OK variable is set to 1 if the printing has been completed. Warning: Do not use the PAGE BREAK command with the PRINT SELECTION command. For more information, see the descriptions of Subtotal, BREAK LEVEL and ACCUMULATE. You can also use statistical and arithmetical functions like Sum and Average to assign values to variables. Then, in each Break area of the report, include a variable with an object method that assigns the subtotal to the variable. To print a sorted selection with subtotals or breaks using PRINT SELECTION, you must first sort the selection. For more information, see the description of these commands, as well as those of Form event code and Level. You can also check for the last footer, by testing End selection during an On Printing Footer event. You can check whether PRINT SELECTION is printing the first header by testing Before selection during an On Header event. An On Printing Footer event is generated just before a footer is printed.An On Printing Break event is generated just before a break area is printed.An On Printing Detail event is generated just before a record is printed.An On Header event is generated just before a header area is printed.For an example of the use of this parameter, refer to the PRINT RECORD command description.ĭuring printing, the output form method and/or the form’s object methods are executed depending on the events that are enabled for the form and objects using the Property List window in the Design environment, as well as on the events actually occurring: This setting is useful for executing several successive calls to PRINT SELECTION (e.g., inside a loop) while maintaining previously set customized print parameters. ![]()
0 Comments
Leave a Reply. |