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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Printer.CurrentPaperSource

Returns the selected paper source.

Component Version macOS Windows Linux Server iOS SDK
Printer 6.5 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "Printer.CurrentPaperSource" { ; ReturnIndex } )   More

Parameters

Parameter Description Example Flags
ReturnIndex Pass 1 to return index or 0 to return name.
Default is zero to return name.
0 Optional

Result

Returns value or error.

Description

Returns the selected paper source.
This value is only available after Printer.Print or Printer.SetPrinter run.

Examples

Show current settings:

Show Custom Dialog [ "Current Settings" ; "PrinterName: " & MBS( "Printer.CurrentPrinterName" ) & ¶ &
"PaperSource: " & MBS( "Printer.CurrentPaperSource" ) & ¶ &
"PaperFormat: " & MBS( "Printer.CurrentPaperFormat" ) & ¶ &
"PrintWhat: " & MBS( "Printer.CurrentPrintWhat" ) ]

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th November 2016, last changed 21st November 2019


Printer.CurrentPaperFormat - Printer.CurrentPrintWhat

💬 Ask a question or report a problem