PrintDialog.SetPrintType
------------------------

Sets what FileMaker will print.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PrintDialog](component_PrintDialog.md) | [5.0](newinversion50.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "PrintDialog.SetPrintType"; Type { ; BlankOption } ) 

**MBS**( **"PrintDialog.SetPrintType";** /\* Sets what FileMaker will print. \*/  
**$Type**; /\* What to print.   
Can be 0 for records being browsed, 1 for current record or 2 for blank record.e.g. 1 \*/   
**$BlankOption**) /\* Optional; Optional, which option to select for blank.   
Can be 0 for "as formatted", 1 for "with boxes" or 2 for "with underline".e.g. 0 \*/ 

### 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](PrintDialogEnable.md)")\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetPrinterName](PrintDialogSetPrinterName.md)"; "")\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)"; 1)\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test-0.pdf")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetPrintType"; 0; 0)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test-1.pdf")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetPrintType"; 1; 0)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test-2-0.pdf")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetPrintType"; 2; 0)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test-2-1.pdf")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetPrintType"; 2; 1)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)"; "/Users/cs/Desktop/test-2-2.pdf")\]  
Set Variable \[$r ; Value:MBS ("PrintDialog.SetPrintType"; 2; 2)\]  
Print \[\]  
Set Variable \[$r ; Value:MBS ("[PrintDialog.Disable](PrintDialogDisable.md)")\]  
### See also

- [PrintDialog.Disable](PrintDialogDisable.md)
- [PrintDialog.Enable](PrintDialogEnable.md)
- [PrintDialog.GetFirstPage](PrintDialogGetFirstPage.md)
- [PrintDialog.GetPrinterName](PrintDialogGetPrinterName.md)
- [PrintDialog.GetPrintToPDF](PrintDialogGetPrintToPDF.md)
- [PrintDialog.GetPrintType](PrintDialogGetPrintType.md)
- [PrintDialog.SetDestinationPath](PrintDialogSetDestinationPath.md)
- [PrintDialog.SetFirstPage](PrintDialogSetFirstPage.md)
- [PrintDialog.SetNoDialog](PrintDialogSetNoDialog.md)
- [PrintDialog.SetPaperName](PrintDialogSetPaperName.md)

### Blog Entries

- [Control printing in FileMaker with MBS Plugin on MacOS](https://www.mbsplugins.de/archive/2023-06-11/Control_printing_in_FileMaker_/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 5.0pr5](https://www.mbsplugins.de/archive/2015-01-01/MBS_Filemaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 27th December 2014 , last changed 10th June 2023

  
[PrintDialog.SetPrintToPDF](PrintDialogSetPrintToPDF.md) - [PrintDialog.SetPrinterName](PrintDialogSetPrinterName.md)

[HTML Version](PrintDialogSetPrintType.shtml)