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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.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")]
Created 27th December 2014, last changed 27th December 2014
PrintDialog.SetPrintToPDF - PrintDialog.SetPrinterName
Feedback: Report problem or ask question.