Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem