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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Printer.PrinterInfo
Queries printer info.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Printer | 6.5 | Yes | Yes | No | Yes | No |
MBS( "Printer.PrinterInfo"; Name; Selector ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Name | The name of the printer. | "LaserPrinter" |
| Selector | The selector for the value to query. | "Name" |
Result
Returns value or error.
Description
Queries printer info.Selectors on Mac: Name, Type, languageLevel (PostScript language level or zero). If you ask for deviceDescriptionKeys, you get a list of other keys available.
Selectors on Windows: ServerName, PrinterName, ShareName, PortName, DriverName, Comment, Location, SepFile, PrintProcessor, Datatype, Parameters, SepFile, Priority, DefaultPriority, StartTime, UntilTime, Status, Jobs, AveragePPM, Status, Attributes.
Attributes and Status are returned as numbers.
If you pass "Keys" for selector, we return list of all available keys.
Examples
Queries type of Mac printer:
MBS("Printer.PrinterInfo"; "Brother DCP-8085DN"; "type")
See also
Example Databases
Blog Entries
FileMaker Magazin
Release notes
- Version 10.2
- Fixed bug with Printer.PrinterInfo function returning value for NSDeviceIsPrinter parameter.
Created 27th November 2016, last changed 27th November 2016
Printer.PrinterCount - Printer.PrinterName
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins