Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PrintDialog.SetDestinationPath
Sets the destination path for PDF.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PrintDialog | 3.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "PrintDialog.SetDestinationPath"; Path ) More
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
Release notes
- Version 10.1
- Fixed bug in PrintDialog.SetDestinationPath not working with space in file path.
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 13th May 2020