Print Method

Official Content
This documentation is valid for:

Prints the document in the default printer.   

Syntax

&DataType.Print( [ Preview [ , Background ] ] )

Type Returned:
Numeric

Where:
Preview
   Indicates whether or not the document will be displayed on screen before printing it. Possible values are 1 (the document is displayed) and 0 (the document is not displayed). This parameter is optional and the default value is 0.
 
Background
Indicates whether there will be background printing (1) or not (0). If background printing is indicated, the control will be returned to the caller program while the printing is in process. If the document is closed in the program before the printing is completed, the printing will be cancelled. This parameter is optional and the default value is 1.

Notes:

 
  • ExcelDocument: The Background parameter is not supported.
  • In order to use this method you must set the “Functions” property to “Allow Non-Standard Functions On Saving” in design and the prototype/production “Functions” property to “Allow Non-Standard Functions On Specifying”.
  • This method returns an error code, so it can be called as a function (&Err = &DataType.Print(…..)).

Scope

Extended Data Types: ExcelDocument, WordDocument
Languages: .Visual FoxPro
User Interface: Win

See Also

ExcelDocument Data Type

WordDocument Data Type