Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Files.PrintFile

Asks the OS to print this file.

Component Version macOS Windows Linux Server iOS SDK
Files 15.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Files.PrintFile"; Path )   More

Parameters

Parameter Description Example
Path Native path to the item to print. "/Users/cs/Desktop/Notes.rtf"

Result

Returns OK or error.

Description

Asks the OS to print this file.
This will usually launch the application for the file type and ask it to print.
Variant of Files.LaunchFile.

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

Print File:

Set Variable [$r; Value: MBS( "Files.PrintFile"; $Path )]

See also

Release notes

Blog Entries

This function checks for a license.

Created 8th July 2025, last changed 5th September 2025


Files.MoveToTrash - Files.ReadAndWriteFile