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

CUPS.PrintFile

Print a file to a printer or class on the default server.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CUPS 2.5 Yes No Yes, macOS only No No

MBS( "CUPS.PrintFile"; Printer; Path { ; Title; Options } )

Parameters

Parameter Description Example value
Printer The name of the printer. "Brother_DCP_8085DN"
Path The file path of the file to print. "/test/testfile.txt"
Title Optional
The title of the print job.
"FileMaker Printout"
Options Optional
List of options. Simply add key and values as string parameters to the function call.
"key1"; "value1"; "key2"; "value2"

Result

Returns job number.

Description

Print a file to a printer or class on the default server.

Examples

Print a file:

MBS( "CUPS.PrintFile"; "Brother_DCP_8085DN"; "/test/testfile.txt"; "FileMaker Printout" )

See also


CUPS.PrintDataEncoding   -   CURL.AddInputFile

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos