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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

SharingPanel.AddImageFile

Adds an image to the share.

Component Version macOS Windows Linux Server iOS SDK
SharingPanel 11.4 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "SharingPanel.AddImageFile"; Path { ; Subject } )   More

Parameters

Parameter Description Example Flags
Path The native file path of the image file to add.
Subject Subject line for sharing via email. Optional

Result

Returns OK or error.

Description

Adds an image to the share.

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

Write a PDF to file and then add it for sharing:

Set Variable [ $path ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserDocuments" ); "test.jpg" ) ]
Set Variable [ $r ; Value: MBS( "Container.WriteFile"; Sharing::Container; $path ) ]
Set Variable [ $r ; Value: MBS( "SharingPanel.AddImageFile"; $Path ) ]

See also

Created 28th August 2021, last changed 29th August 2021


SharingPanel.AddImageContainer - SharingPanel.AddStyledText

Feedback: Report problem or ask question.