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: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

PDFKit.SetPrintOption

Sets custom print options.

Component Version macOS Windows Linux Server iOS SDK
PDFKit 9.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "PDFKit.SetPrintOption"; Key; Value { ; Type } )   More

Parameters

Parameter Description Example Flags
Key The key to use. "com_apple_print_PrintSettings_PMCopies"
Value The value to use.
Depending on data type, the plugin will pass a number or a text.
3
Type Available in MBS FileMaker Plugin 9.2 or newer.
The type of data to add.
Default is empty to use type of value passed. So text or number type would be picked automatically.
Valid values for type are boolean, text, number, integer and text.
Integer is for integer numbers while number is for floating numbers.
Optional

Result

Returns OK or error.

Description

Sets custom print options.
For regular options, please use PDFKit.SetPrintSetting.

Examples

Sets a custom option:

MBS( "PDFKit.SetPrintOption"; "xxx"; 123 )

Sets a custom boolean option:

MBS( "PDFKit.SetPrintOption"; "xxx"; 1; "boolean" )

Asks for 4 pages per page:

Set Variable [ $r ; Value: MBS( "PDFKit.SetPrintOption"; "NSPagesAcross"; 2; "Integer") ]
Set Variable [ $r ; Value: MBS( "PDFKit.SetPrintOption"; "NSPagesDown"; 2; "Integer") ]

Set output bin:

Set Variable [ $r ; Value: MBS("PDFKit.SetPrintOption"; "OutputBin"; "MailBoxBin1") ]

See also

Release notes

Example Databases

Blog Entries

Created 12nd March 2019, last changed 20th September 2021


PDFKit.SetPDFPageRotation - PDFKit.SetPrintSetting

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins

Start Chat