Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

PrintDialog.Install

Installs the extension for the printer dialog.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PrintDialog 3.5 Yes No No No No

MBS( "PrintDialog.Install" )

Parameters

none

Result

Returns OK or error.

Description

Installs the extension for the printer dialog.
Only after PrintDialog.Install was called, you can use PrintDialog.Enable.
You only call this method once.

This is Mac only. For Windows, please check Printer.SetPrinter and Printer.Print.

Examples

Install and print to PDF:

Set Variable [$r; MBS( "PrintDialog.Install")]
Set Variable [$r; MBS( "PrintDialog.Enable")]
Set Variable [$r; MBS( "PrintDialog.SetPrintToPDF"; 1)]
Set Variable [$r; MBS( "PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test.pdf")]
Set Variable [$r; MBS( "PrintDialog.SetNoDialog"; 1 )]
Print []

See also

Example Databases


PrintDialog.GetTray   -   PrintDialog.SetAllPages

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins