Printer.CurrentPrintWhat
------------------------

Returns the selected item to print.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Printer](component_Printer.md) | [6.5](newinversion65.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Printer.CurrentPrintWhat" { ; ReturnIndex } ) 

**MBS**( **"Printer.CurrentPrintWhat";** /\* Returns the selected item to print. \*/  
**$ReturnIndex**) /\* Optional; Pass 1 to return index or 0 to return name.  
Default is zero to return name.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ReturnIndex | Pass 1 to return index or 0 to return name.   Default is zero to return name. | 0 | Optional |

### Result

Returns value or error.

### Description

Returns the selected item to print.  
This value is only available after [Printer.Print](PrinterPrint.md) run.  
### Examples

Show current settings:

 Show Custom Dialog \[ "Current Settings" ; "PrinterName: " &amp; MBS ( "[Printer.CurrentPrinterName](PrinterCurrentPrinterName.md)" ) &amp; ¶ &amp;  
"PaperSource: " &amp; MBS ( "[Printer.CurrentPaperSource](PrinterCurrentPaperSource.md)" ) &amp; ¶ &amp;  
"PaperFormat: " &amp; MBS ( "[Printer.CurrentPaperFormat](PrinterCurrentPaperFormat.md)" ) &amp; ¶ &amp;  
"PrintWhat: " &amp; MBS ( "Printer.CurrentPrintWhat" ) \]  
### See also

- [Printer.CurrentPaperFormat](PrinterCurrentPaperFormat.md)
- [Printer.CurrentPaperSource](PrinterCurrentPaperSource.md)
- [Printer.CurrentPrinterName](PrinterCurrentPrinterName.md)
- [Printer.Print](PrinterPrint.md)

### Example Databases

- [Win Only/Printer Switch/Printer Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Printer%20Switch/Printer%20Dialog.shtml#4ScriptAnchor_)
- [Win Only/Printer Switch/PrinterToolWin/printerTool\_FM15](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Printer%20Switch/PrinterToolWin/printerTool_FM15.shtml#1ScriptAnchor_)
- [Win Only/Printer Switch/Query Paper Formats and Sources](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Printer%20Switch/Query%20Paper%20Formats%20and%20Sources.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr8](https://www.mbsplugins.de/archive/2016-11-22/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin Decision Graphs](https://www.mbsplugins.de/archive/2016-11-22/MBS_FileMaker_Plugin_Decision_/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2017, Seite 23](https://filemaker-magazin.de/neuigkeit/3961-Appetithappen-FMM_201705)

This function is free to use.

Created 18th November 2016 , last changed 25th November 2017

  
[Printer.CurrentPaperSource](PrinterCurrentPaperSource.md) - [Printer.CurrentPrinterName](PrinterCurrentPrinterName.md)

[HTML Version](PrinterCurrentPrintWhat.shtml)