DAOpenFileReadOnly
Document management, Direct access functionality
Description
Opens a file in direct access mode. This allows large files to be processed. The file is opened with read only access so other processes will also be able to open the file in read only mode.
DASaveAsFile should be used to save any changes to a new file as DAAppendFile cannot update read only files.
Syntax
Delphi
function TPDFlib.DAOpenFileReadOnly(Const InputFileName, Password: WideString): Integer;ActiveX
Function PDFlib::DAOpenFileReadOnly(InputFileName As String, Password As String) As LongDLL
int DLDAOpenFileReadOnly(int InstanceID, wchar_t * InputFileName, wchar_t * Password);Parameters
| InputFileName | The path and name of the document to open in direct access mode with read only access. |
|---|---|
| Password | The password to use when opening the document. This can be the owner or user password. If the user password is used certain functionality may be restricted depending on the permissions of the document. |
Return values
| 0 | The file could not be opened. Use the LastErrorCode function to determine the cause of the failure. A FileHandle that can be used with the other Direct Access functions |
|---|---|
| Non-zero |