SaveDocument

Saves a document in the document repository, given a string containing the content of the document to be created.

Tip:

SaveDocumentEx also saves a document, and provides additional options to specify the document’s content type and privacy flag. To save documents using an array of bytes, or to save custom binary documents, use SaveDocument2.

Syntax

<HFMwManageDocuments>.SaveDocument bstrPath, bstrName, bstrDescription, lDocumentType, lDocumentFileType, bstrSecurityClass, bstrDocument, vbOverwriteExisting

Argument

Description

bstrPath

The document repository folder that will contain the document.

Input argument. String subtype.

bstrName

The name of the document.

Input argument. String subtype.

bstrDescription

The description of the document.

Input argument. String subtype.

lDocumentType

The document type of the document. Document types are represented by the HFMConstants type library constants listed in Document Type Constants.

Do not pass WEBOM_DOCTYPE_CUSTOM to this method. To save custom documents, use SaveDocument2.

Input argument. Long subtype.

lDocumentFileType

The file type of the document. File types are represented by the HFMConstants type library constants listed in Document File Type Constants.

Input argument. Long subtype.

bstrSecurityClass

The name of the security class for the document.

Input argument. String subtype.

bstrDocument

The content to be saved in the document.

Tip:

GetDocument returns a string that contains the content of an existing document. The HFMwQueryDef method GetReportDefinition returns a string that can be used to create a journal report.

Input argument. String subtype.

vbOverwriteExisting

Indicates whether an existing document of the same name should be overwritten. Pass TRUE to overwrite, FALSE otherwise.

Input argument.