Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Queries paper formats.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Printer 6.5 No Yes No No No

MBS( "Printer.PaperFormats" )




Returns list or error.


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 run.


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"; "?"; 2; ""; "?")]
Pause/Resume Script [Duration (seconds): 2]
Set Field [Printer Dialog::PaperFormats; MBS( "Printer.PaperFormats" )]
Set Field [Printer Dialog::Printers; MBS( "Printer.PrinterNames" )]
Set Field [Printer Dialog::PaperSources; MBS( "Printer.PaperSources" )]

See also

Example Databases

Printer.GetDefaultPrinter   -   Printer.PaperSources

Feedback: Report problem or ask question.

MBS Xojo blog