Printer.PaperFormats
--------------------

Queries paper formats.

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

MBS( "Printer.PaperFormats" ) ### Parameters

none

### Result

Returns list or error.

### Description

Queries paper formats.  
The plugin will store the paper formats it sees in the dialog, so you can later query them.  
This value is only available after [Printer.Print](PrinterPrint.md) or [Printer.SetPrinter](PrinterSetPrinter.md) run.  
### Examples

Query formats:

 # we run Print dialog   
\# as there is no printer or paper format with ?, this will not change it   
\# and 2 means cancel   
\#   
Set Variable \[$r ; Value:MBS ("[Printer.Print](PrinterPrint.md)"; ""; 2; "?"; "?")\]  
\# we just put in question marks here, so our plugin looks into paper options, but since ? is not a valid one, it will not change it.   
\#   
Pause/Resume Script \[Duration (seconds): 2\]  
\#   
Set Field \[Printer Dialog::PaperFormats ; MBS ( "Printer.PaperFormats" )\]  
Set Field \[Printer Dialog::Printers ; MBS ( "[Printer.PrinterNames](PrinterPrinterNames.md)" )\]  
Set Field \[Printer Dialog::PaperSources ; MBS ( "[Printer.PaperSources](PrinterPaperSources.md)" )\]  
### See also

- [Printer.PaperSources](PrinterPaperSources.md)
- [Printer.Print](PrinterPrint.md)
- [Printer.PrinterName](PrinterPrinterName.md)
- [Printer.PrinterNames](PrinterPrinterNames.md)
- [Printer.SetPrinter](PrinterSetPrinter.md)

### Example Databases

- [Win Only/Printer Switch/Printer Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Printer%20Switch/Printer%20Dialog.shtml#3ScriptAnchor_)
- [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

- [Control printing in FileMaker with MBS Plugin on Windows](https://www.mbsplugins.de/archive/2023-06-12/Control_printing_in_FileMaker_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.5pr7](https://www.mbsplugins.de/archive/2016-11-16/MBS_FileMaker_Plugin_version_6/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 16th November 2016 , last changed 10th December 2023

  
[Printer.GetJobsAsJSON](PrinterGetJobsAsJSON.md) - [Printer.PaperSources](PrinterPaperSources.md)

[HTML Version](PrinterPaperFormats.shtml)