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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets what FileMaker will print.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PrintDialog | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Type | What to print. Can be 0 for records being browsed, 1 for current record or 2 for blank record. |
1 | |
BlankOption | Optional, which option to select for blank. Can be 0 for "as formatted", 1 for "with boxes" or 2 for "with underline". |
0 | Optional |
Returns OK or error.
Test all variants:
Allow User Abort [Off]
Set Variable [$r; Value:MBS("PrintDialog.Enable")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrinterName"; "")]
Set Variable [$r; Value:MBS("PrintDialog.SetNoDialog"; 1)]
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-0.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 0; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-1.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 1; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-0.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-1.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 1)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-2.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 2)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.Disable")]
This function checks for a license.
Created 27th December 2014, last changed 10th June 2023