Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Shows the printer picker.

Component Version macOS Windows Linux Server iOS SDK
PDFKit 14.2 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "PDFKit.SelectPrinter" )




Returns 1, 0 or error.


Shows the printer picker.
On success, we return 1 if the user picked a printer or 0 if not.
If a printer was selected before, we pre-select it for the next time you show the dialog.
You can set the printer to pre-select using PDFKit.SetPrintSetting function.

See PDFKit.GetPrintSetting to query printerURL to identify it.


Pick a printer:

If [ Length ( PDFKit Print::PrinterURL ) > 0 ]
    Set Variable [ $r ; Value: MBS( "PDFKit.SetPrintSetting"; "PrinterURL"; PDFKit Print::PrinterURL ) ]
End If
# show the dialog
Set Variable [ $userDidSelect ; Value: MBS( "PDFKit.SelectPrinter" ) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to show printer selecto…" ; $r ]
Else If [ $userDidSelect ]
    # and check what we got
    Set Variable [ $printerURL ; Value: MBS( "PDFKit.GetPrintSetting"; "PrinterURL" ) ]
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 17th March 2024, last changed 15th May 2024

PDFKit.SavePrintSettings - PDFKit.SetCurrentFilter