Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PrintDialog.SetPrintType
Sets what FileMaker will print.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PrintDialog | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameters
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 |
Result
Returns OK or error.
Description
Sets what FileMaker will print.Works only if dialog is not shown currently.
Examples
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")]
See also
- PrintDialog.Disable
- PrintDialog.Enable
- PrintDialog.GetFirstPage
- PrintDialog.GetPrinterName
- PrintDialog.GetPrintToPDF
- PrintDialog.GetPrintType
- PrintDialog.SetDestinationPath
- PrintDialog.SetFirstPage
- PrintDialog.SetNoDialog
- PrintDialog.SetPaperName
Blog Entries
This function checks for a license.
Created 27th December 2014, last changed 10th June 2023