Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  

PrintDialog.Install

Installs the extension for the printer dialog.

Component Version macOS Windows Linux Server iOS SDK License
PrintDialog 3.5 ✅ Yes ❌ No ❌ No ❌ No ❌ No Paid
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 function 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

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 20th April 2019


PrintDialog.GetTray - PrintDialog.Reset

Feedback: Report problem or ask question.


Start Chat