Files.PrintFile
---------------

Asks the OS to print this file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [15.3](newinversion153.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Files.PrintFile"; Path ) 

**MBS**( **"Files.PrintFile";** /\* Asks the OS to print this file. \*/  
**$Path**) /\* Native path to the item to print.e.g. "/Users/cs/Desktop/Notes.rtf" \*/ 

### 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](FilesLaunchFile.md).  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) 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](component_FileDialog.md) functions.  
### Examples

Print File:

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

- [Files.Launch](FilesLaunch.md)
- [Files.LaunchFile](FilesLaunchFile.md)
- [Files.WriteFile](FilesWriteFile.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 15.3**
    - Added [Files.PrintFile](https://www.mbsplugins.eu/FilesPrintFile.shtml) function for macOS and Windows.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-07-15/Neues_MBS_Plugin_153_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-07-15/MBS_Plugin_153_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr7](https://www.mbsplugins.de/archive/2025-07-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Files.MoveToTrash](FilesMoveToTrash.md) - [Files.ReadAndWriteFile](FilesReadAndWriteFile.md)

[HTML Version](FilesPrintFile.shtml)