Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Printer.CurrentPrinterName
Returns the selected printer name.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Printer | 6.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Printer.CurrentPrinterName" { ; 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 printer name.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
- Printer.CurrentPaperFormat
- Printer.CurrentPaperSource
- Printer.CurrentPrintWhat
- Printer.Print
- Printer.SetPrinter
Release notes
- Version 10.0
- Fixed issue in Printer.SetupPrinter not setting value for Printer.CurrentPrinterName function.
Example Databases
- Win Only/Printer Switch/Printer Dialog
- Win Only/Printer Switch/PrinterToolWin/printerTool_FM15
- Win Only/Printer Switch/Query Paper Formats and Sources
Blog Entries
FileMaker Magazin
This function is free to use.
Created 18th November 2016, last changed 21st November 2019