Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PDFKit.SelectPrinter
Shows the printer picker.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 14.2 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "PDFKit.SelectPrinter" )
Parameters
none
Result
Returns 1, 0 or error.
Description
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.
Examples
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
- Version 15.2
- Improved PDFKit.SelectPrinter to return an error when we fail to create the dialog.
- Version 14.2
- Added functions for iOS to print including PDFKit.SelectPrinter to pick a printer.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 15.2pr1
- News in MBS FileMaker Plugin 14.2
- Neues MBS Plugin 14.2 für Claris FileMaker
- MBS Plugin 14.2 for Claris FileMaker
- MBS @ FMTraining.TV - Printing in FileMaker with the MonkeyBread Plug-in
- Controlled printing for iOS in FileMaker
- MBS FileMaker Plugin, version 14.2pr2
- MBS FileMaker Plugin, version 14.2pr1
This function checks for a license.
Created 17th March 2024, last changed 15th May 2024
