Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- Dialog.Reset
- FileDialog.Reset
- ListDialog.Reset
- PrintDialog.GetPrinterName
- PrintDialog.GetReset
- PrintDialog.SetPrinterName
- PrintDialog.SetReset
Release notes
- Version 12.1
- Added PageSetupDialog.Reset and PrintDialog.Reset functions.
Blog Entries
This function is free to use.
Created 9th February 2022, last changed 9th February 2022