Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PrintDialog.GetConfiguration
Queries configuration from last print.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PrintDialog | 8.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "PrintDialog.GetConfiguration" )
Parameters
none
Result
Returns data or error.
Description
Queries configuration from last print.You can run with dialog, select all settings you like and then store the configuration.
Configuration is the serialized and base64 encoded setup data.
Just store as it is in a text field for later restoration with PrintDialog.SetConfiguration or PDFKit.SavePrintSettings.
Returns empty result if no print configuration was yet created.
See PrintDialog.GetLastSettings for a xml you can read.
Examples
Query configuration after printing:
Set Variable [ $r ; Value: MBS("PrintDialog.Enable") ]
Print [ With dialog: On ]
Set Field [ Printer Dialog on Mac::Data ; MBS("PrintDialog.GetConfiguration") ]
See also
- PDFKit.SavePrintSettings
- PrintDialog.Enable
- PrintDialog.GetLastSettings
- PrintDialog.SetConfiguration
Release notes
- Version 8.0
- Added PrintDialog.GetConfiguration and PrintDialog.SetConfiguration functions.
Blog Entries
This function is free to use.
Created 21st December 2017, last changed 24th April 2021