Saves a document in the document repository and specifies the document’s content type and privacy flag, given a string containing the content of the document to be created.
To save a document without specifying its content type and privacy flag, use SaveDocument. To save documents using an array of bytes, or to save custom binary documents, use SaveDocument2. |
<HFMwManageDocuments>.SaveDocumentEx bstrPath, bstrName, bstrDescription, lDocumentType, lDocumentFileType, bstrSecurityClass, bstrDocument, vbIsPrivate, lContentType, vbOverwriteExisting
The document repository folder that will contain the document. | |
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. | |
The file type of the document. File types are represented by the HFMConstants type library constants listed in Document File Type Constants. | |
The content to be saved in the document. 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. | |
Specifies whether the folder is public or private. Pass TRUE for private, FALSE for public. | |
The type of documents that the folder can store, if you are saving a folder. If are saving a document type other than a folder, you can pass any Long, as SaveDocumentEx will ignore this argument’s value in that case. Valid values are represented by the HFMConstants type library constants listed in Document Type Constants. | |
Indicates whether an existing document of the same name should be overwritten. Pass TRUE to overwrite, FALSE otherwise. |