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
DynaPDF.Print.SetDevMode
Sets device mode.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 7.0 | No | Yes | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| DevMode | The new device mode. |
Result
Returns OK or error.
Description
Sets device mode.Sets the print settings for printing on Windows with DynaPDF.Print function.
Examples
Print with options
#Initialize DynaPDF if needed
If [MBS("DynaPDF.IsInitialized") ≠ 1]
Perform Script [“InitDynaPDF”]
End If
#New PDF session
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
#Load PDF from container
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer"; $pdf; Print PDFs::InputPDF)]
Set Variable [$r; Value:MBS("DynaPDF.ImportPDFFile"; $pdf; 1)]
#Print
Set Variable [$flags; Value:If ( Position ( Print PDFs::Options; "ShrinkToPrintArea"; 1; 1)>0; 16; 0) + If ( Position ( Print PDFs::Options; "AutoRotateAndCenter"; 1; 1)>0; 4; 0) + If ( Position ( Print PDFs::Options; "Color"; 1; 1)>0; 2; 0) + If ( …]
Set Variable [$ShowDialog; Value:Position ( Print PDFs::Options ; "ShowDialog"; 1; 1)>0]
Set Variable [$r; Value:MBS( "DynaPDF.Print.SetDevMode"; Print PDFs::Printer Device Mode)]
Set Variable [$r; Value:MBS( "DynaPDF.Print.SetDevNames"; Print PDFs::Printer Device Names)]
Set Variable [$r; Value:MBS("DynaPDF.Print"; $pdf; Print PDFs::Printer Name; ""; ""; $flags; ""; ""; ""; ""; $ShowDialog)]
Set Field [Print PDFs::Printer Device Names; MBS( "DynaPDF.Print.GetDevNames" )]
Set Field [Print PDFs::Printer Device Mode; MBS("DynaPDF.Print.GetDevMode")]
#Cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
See also
- DynaPDF.ImportPDFFile
- DynaPDF.IsInitialized
- DynaPDF.New
- DynaPDF.OpenPDFFromContainer
- DynaPDF.Print
- DynaPDF.Print.GetDevMode
- DynaPDF.Print.GetDevNames
- DynaPDF.Print.SetDevNames
- DynaPDF.Release
Example Databases
Blog Entries
FileMaker Magazin
Release notes
- Version 8.4
- Improved DynaPDF.Print to use the device mode set with DynaPDF.Print.SetDevMode even if no dialog is used.
- Version 7.0
Created 16th January 2017, last changed 16th January 2017
DynaPDF.Print.GetDevNames - DynaPDF.Print.SetDevNames
Feedback: Report problem or ask question.
Links
MBS FileMaker blog