DITA-FMx User Guide

OpenDITA

Opens a file as a DITA file, using the proper structure application.

Syntax

F_ApiCallClient("ditafmx", "OpenDITA|ditaFileName");
ditaFileName
Path and file name of DITA file to open. You must use double backslashes as the directory delimiter when specifying the DITA file name. Required.
Note: This DITA-FMx API function is available with all versions of DITA-FMx.

Return Value

0
Failure. Unable to open the specified file. It is also possible that DITA-FMx is not available for calls. Verify that DITA-FMx is registered in the maker.ini file using the client name of “ditafmx”.
<0
Failure.
>0
Success. Value returned represents the docId of the opened file.