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
PrintDialog.SetDestinationPath
Sets the destination path for PDF.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| PrintDialog | 3.5 | Yes | No | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | Native file path for PDF file. | $path |
Result
Returns error or OK.
Description
Sets the destination path for PDF.If you want the user to select a path, please use FileDialog functions.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
Examples
Set print to PDF:
Set Variable [ $r ; Value: MBS( "PrintDialog.SetPrintToPDF"; 1 ) ]
Set Variable [ $r ; Value: MBS( "PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test.pdf" ) ]
Install and print to PDF:
Set Variable [$r; MBS( "PrintDialog.Install")]
Set Variable [$r; MBS( "PrintDialog.Enable")]
Set Variable [$r; MBS( "PrintDialog.SetPrintToPDF"; 1)]
Set Variable [$r; MBS( "PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test.pdf")]
Set Variable [$r; MBS( "PrintDialog.SetNoDialog"; 1 )]
Print []
See also
- Path.FileMakerPathToNativePath
- PrintDialog.Enable
- PrintDialog.GetDestinationPath
- PrintDialog.Install
- PrintDialog.SetNoDialog
- PrintDialog.SetPrintToPDF
- PrintDialog.SetPrintType
Example Databases
Release notes
- Version 10.1
- Fixed bug in PrintDialog.SetDestinationPath not working with space in file path.
Created 18th August 2014, last changed 13th May 2020
PrintDialog.SetCopies - PrintDialog.SetDuplex
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos