PageSetupDialog.SetPaperName
----------------------------

Sets paper name.

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

MBS( "PageSetupDialog.SetPaperName"; Name ) 

**MBS**( **"PageSetupDialog.SetPaperName";** /\* Sets paper name. \*/  
**$Name**) /\* The paper name.  
e.g.   
A4: iso-a4  
A3: iso-a3  
Letter: na-letter  
Legal: na-legal  
Ledger: ledger  
B4: jis-b4e.g. "A4" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The paper name.   e.g.    A4: iso-a4   A3: iso-a3   Letter: na-letter   Legal: na-legal   Ledger: ledger   B4: jis-b4 | "A4" |

### Result

Returns OK or error.

### Description

Sets paper name.  
Pass empty text in order to reset the value and to not change the paper in the dialog.  
You need to run paper setup dialog to let the plugin change values.  
  
We found paper sizes for our printer in PPD files in /private/etc/cups/ppd folder. e.g. "Env10" for Envelope #10.  
### Examples

Set paper to be A5:

 Set Variable \[ $r ; Value: MBS ("PageSetupDialog.SetPaperName"; "A5") \]  
Set paper to be US Letter:

 Set Variable \[ $r ; Value: MBS ("PageSetupDialog.SetPaperName"; "na-letter") \]  
### See also

- [PageSetupDialog.GetPaperHeight](PageSetupDialogGetPaperHeight.md)
- [PageSetupDialog.GetPaperName](PageSetupDialogGetPaperName.md)
- [PageSetupDialog.GetPaperWidth](PageSetupDialogGetPaperWidth.md)
- [PageSetupDialog.GetPrinterName](PageSetupDialogGetPrinterName.md)
- [PageSetupDialog.SetPaperHeight](PageSetupDialogSetPaperHeight.md)
- [PageSetupDialog.SetPaperWidth](PageSetupDialogSetPaperWidth.md)
- [PageSetupDialog.SetPrinterName](PageSetupDialogSetPrinterName.md)
- [PrintDialog.SetPaperName](PrintDialogSetPaperName.md)

### Example Databases

- [Mac only/Print/Page Setup Dialog on Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Print/Page%20Setup%20Dialog%20on%20Mac.shtml#3ScriptAnchor_)
- [Mac only/Print/Page Setup Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Print/Page%20Setup%20Dialog.shtml#1ScriptAnchor_)

### Blog Entries

- [Page Setup Dialog example](https://www.mbsplugins.de/archive/2019-06-01/Page_Setup_Dialog_example/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th April 2019 , last changed 7th August 2022

  
[PageSetupDialog.SetPaperHeight](PageSetupDialogSetPaperHeight.md) - [PageSetupDialog.SetPaperOrientation](PageSetupDialogSetPaperOrientation.md)

[HTML Version](PageSetupDialogSetPaperName.shtml)