print( )
Prints a form as it appears on screen, or prints only the data from a completed form
Syntax
<oRef>.print([<dialog expL>[, <mode expL>]])
<oRef>
An object reference to the form you want to print.
<dialog expL>
An optional parameter that determines whether to display the standard print dialog. If omitted, the dialog is displayed by default. If the dialog is not displayed, the form is printed according to the settings of _app.printer.
<mode expL>
An optional parameter that selects which method to use when printing. This parameter defaults to true and can be passed via either of the following:
false Specifies that a screen image of the form will be printed
true Specifies that the form’s data be printed for use in filling out a printed form
Property of
Form, SubForm
Description
Use the print( ) method to print a form on a selected printer. Executing the print( ) method opens the standard Print dialog box. If the user clicks OK, the current page of the form is printed on the selected printer.
When passing true as a second parameter:
You may set the printable property of individual controls to false to prevent them from printing.