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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

PageSetupDialog.Install

Installs the extension for the page setup dialog.

Component Version macOS Windows Linux Server iOS SDK
PrintDialog 9.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "PageSetupDialog.Install" )

Parameters

none

Result

Returns OK or error.

Description

Installs the extension for the page setup dialog.
Only after PageSetupDialog.Install was called, you can use PageSetupDialog.Enable.
You only call this function once.

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

Examples

Initialize paper setup dialog:

Set Variable [ $r ; Value: MBS("PageSetupDialog.Install") ]

Run dialog with plugin:

Allow User Abort [ Off ]
Set Variable [ $r ; Value: MBS("PageSetupDialog.Install") ]
Set Variable [ $r ; Value: MBS("PageSetupDialog.Enable") ]
# set options here
Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; ,1; "MBS( \"Menubar.RunMenuCommand\"; 57606 )") // run Page Setup Dialog in 0.1 seconds ]
Pause/Resume Script [ Duration (seconds): 1 ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 20th April 2019, last changed 20th April 2019


PageSetupDialog.GetScalingFactor - PageSetupDialog.Reset

💬 Ask a question or report a problem