LoadDocumentsEx

Loads one or more documents from disk into the specified document repository folder, applying a given security class and a privacy flag to each document. You can also apply labels to documents.

The file names and paths, document labels, privacy flags, and security classes are passed as arrays that have a one-to-one correspondence.

Tip:

To apply the same security classes to all documents, or to omit the private document flag, use LoadDocuments.

Syntax

<HFMwManageDocuments>.LoadDocumentsEx bstrDestinationPath, lDocumentType, lDocumentFileType, varabstrNames, varabstrSecurityClass, varabPrivate, varabstrFilePaths, bstrLogFilePath, vbIncludeSubFolders, vbOverwriteExisting, varabOverwriteSecurityClass

Argument

Description

bstrDestinationPath

The document repository folder that will contain the documents. Precede the folder name with a backslash ( \ ).

Input argument. String subtype.

lDocumentType

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

Input argument. Long subtype.

lDocumentFileType

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

Input argument. Long subtype.

varabstrNames

The labels to be applied to the documents.

Some types of documents, such as reports and data forms, contain default labels. If you pass a label in the array item for the document, that will override the default label; if you pass a blank string, the default label is not overridden.

Input argument.

varabstrSecurityClass

An array of the security classes for the documents.

Input argument.

varabPrivate

An array of flags indicating whether the corresponding documents are public or private. Pass TRUE for private, FALSE for public.

Input argument.

varabstrFilePaths

An array containing the names and paths of the files to be loaded.

Input argument.

bstrLogFilePath

The name and path of the log file for the load operation. You must specify a name and path, otherwise an error occurs.

Input argument. String subtype.

vbIncludeSubFolders

Future use. You must pass a valid Boolean, but the value is ignored by this method.

Input argument. Boolean subtype.

vbOverwriteExisting

A flag that specifies whether existing documents of the same name should be overwritten. Pass TRUE to overwrite, FALSE otherwise.

Input argument. Boolean subtype.

varabOverwriteSecurityClass

An array of flags that specify whether to overwrite the existing security classes of the corresponding documents. Pass TRUE to overwrite, FALSE otherwise.

Input argument.