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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
PrintDialog.SetPrintType
Sets what FileMaker will print.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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.SetDestinationPath
- PrintDialog.SetFirstPage
- PrintDialog.SetNoDialog
- PrintDialog.SetPaperName
- PrintDialog.SetPrintToPDF
Blog Entries
Created 27th December 2014, last changed 27th December 2014
PrintDialog.SetPrintToPDF - PrintDialog.SetPrinterName
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins