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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

PrintDialog.Install

Installs the extension for the printer dialog.

Component Version macOS Windows Linux Server 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 function once. More calls are ignored.

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

This function checks for a license.

Created 18th August 2014, last changed 10th June 2023


PrintDialog.GetTray - PrintDialog.Reset

💬 Ask a question or report a problem