|fileName||str||1..1000||(required)||Max. 1000 chars.|
Output functions make it possible to save a drawing in a file. The following formats are presently available:
macOS: BMP, GIF, JPEG, PDF, PNG, SVG, TIFF
Windows: BMP, EMF, GIF, JPEG, PDF, PNG, SVG, TIFF
Linux: PDF, PNG, SVG
By using the 1st argument fileName the name of the file including an optional file path is defined. The separator in the file path is a slash "/", with no space before and after the slash. Either a complete, absolute file path or only a relative path can be passed to SaveAsPNGFile(). The relative path refers to the folder in which the current FileMaker Pro database file is located. For more information, refer to File Path Syntax.
If a file with the same name already exists, the following options are available using the 2nd argument fileFlag:
If fileFlag = replace the file that already exists is overwritten (default).
If fileFlag = addCounter is set, a counter is added to the file name, e.g. drawing-1.png, drawing-2.png, and so on.
The 3rd argument creatorType is ignored in xmCHART 4 and higher and is only for compatibility with previous xmCHART versions.
The image resolution can be controlled by the last argument resolution.
For more information, refer to Export Images.