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
PDFKit.SetPrintOption
Sets custom print options.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PDFKit | 9.2 | Yes | No | No | No | No |
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") ]
See also
Example Databases
Blog Entries
Release notes
- Version 9.2
- Added new optional type parameter to PrintDialog.SetOption and PDFKit.SetPrintOption to set data type.
- Added PDFKit.GetPrintOption and PDFKit.SetPrintOption functions to set custom options.
Created 12nd March 2019, last changed 14th December 2019
PDFKit.SetPDFPageRotation - PDFKit.SetPrintSetting
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins