Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

PageSetupDialog.SetPaperName

Sets paper name.

Component Version macOS Windows Linux Server iOS SDK
PrintDialog 9.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "PageSetupDialog.SetPaperName"; name )   More

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

Example Databases

Blog Entries

This function checks for a license.

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


PageSetupDialog.SetPaperHeight - PageSetupDialog.SetPaperOrientation