DASaveAsFileA

Document management, Direct access functionality

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DASaveAsFile and string arguments are interpreted using the current SetAnsiMode code page

Rewrites the entire file, including all changes, to a new file. This operation may take some time with large files or files with many objects. The output header uses the effective PDF version of the DA document, including any version raise caused by Direct Access edits. The original file is closed after this operation and the file handle will no longer be valid. The original file cannot be overwritten. Use DAAppendFile if you want to append changes to original file.

Syntax

Delphi

Function DLDASaveAsFileA(InstanceID, FileHandle: Integer; OutputFileName: PAnsiChar): Integer;

DLL

int DLDASaveAsFileA(int InstanceID, int FileHandle, const char * OutputFileName);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
OutputFileNameThe path and name of the new document to create.

Return values

0The new file could not be created
1The document was saved to the new file successfully