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
Print a file to a printer or class on the default server.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CUPS | 2.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Printer | The name of the printer. Please use CUPS printer name with underscore instead of spaces. |
"Brother_DCP_8085DN" | |
Path | The file path of the file to print. | "/test/testfile.txt" | |
Title | The title of the print job. | "FileMaker Printout" | Optional |
Options | List of options. Simply add key and values as string parameters to the function call. | "key1"; "value1"; "key2"; "value2" | Optional |
Returns job number.
Print a file:
MBS( "CUPS.PrintFile"; "Brother_DCP_8085DN"; "/test/testfile.txt"; "FileMaker Printout" )
This function checks for a license.
Created 18th August 2014, last changed 2nd February 2021