SaveDocumentEx

Saves a document to the application server and specifies the document’s content type and privacy flag.

Tip:

To save a document without specifying its content type and privacy flag, use SaveDocument.

Syntax

<HsvReports>.SaveDocumentEx bstrPath, bstrName, bstrDescription, lDocumentType, lDocumentFileType, lSecurityClass, varabyDocument, vbIsPrivate, lContentType, vbOverwriteExisting

Argument

Description

bstrPath

String (ByVal). The path of the folder containing the documents. The folders in the path are delimited by backslashes ( \ ).

bstrName

String (ByVal). The name of the document.

bstrDescription

String (ByVal). The description of the document.

lDocumentType

Long (ByVal). The document type. Valid values are represented by the HFMConstants type library constants listed in Document Type Constants.

lDocumentFileType

Long (ByVal). The file type of the document. Valid values are represented by the HFMConstants type library constants listed in Document File Type Constants.

lSecurityClass

Long (ByVal). The ID of the document’s security class.

Tip:

You can get the ID from a security class name with GetSecurityClassID.

varabyDocument

Byte array (ByVal). The document’s definition as an array of Bytes.

vbIsPrivate

Boolean (ByVal). Specifies whether the folder is public or private. Pass TRUE for private, FALSE for public.

lContentType

Long (ByVal). 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.

vbOverwriteExisting

Boolean (ByVal). Determines whether to overwrite a document of the same name on the application server. Pass TRUE to overwrite existing documents, FALSE otherwise.