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.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

Release notes

Example Databases

Created 18th August 2014, last changed 13th May 2020


PrintDialog.SetCopies - PrintDialog.SetDuplex

Feedback: Report problem or ask question.