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  

PrintDialog.Reset

Resets settings in plugin.

Component Version macOS Windows Linux Server iOS SDK
PrintDialog 12.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "PrintDialog.Reset" )

Parameters

none

Result

Returns OK or error.

Description

Resets settings in plugin.
We reset our properties back to defaults.
Copies, AllPages, FirstPage, LastPage, Orientation, Duplex, PageNumberingOffset, PrintStyleSetting, PrintTypePopupIndex, PrintTypeRadioIndex, ReverseOrder, PaperWidth, PaperHeight are all set to -1.
NoDialog, PrintToPDF, Reset and FixDestination is set to off.
PrinterName, PaperName, Options, LastSettings, DestinationPath, Tray and LoadedSettings are cleared.

Examples

Sets printer name, resets and checks:

Let ( [
r1 = MBS( "PrintDialog.SetPrinterName"; "Hello" );
r2 = MBS( "PrintDialog.GetPrinterName" );
r3 = MBS( "PrintDialog.Reset"; "Hello" );
r4 = MBS( "PrintDialog.GetPrinterName" )
]; r2 )

See also

Release notes

Blog Entries

This function is free to use.

Created 9th February 2022, last changed 9th February 2022


PrintDialog.Install - PrintDialog.SetAllPages

💬 Ask a question or report a problem