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.
To apply the same security classes to all documents, or to omit the private document flag, use LoadDocuments. |
<HFMwManageDocuments>.LoadDocumentsEx bstrDestinationPath, lDocumentType, lDocumentFileType, varabstrNames, varabstrSecurityClass, varabPrivate, varabstrFilePaths, bstrLogFilePath, vbIncludeSubFolders, vbOverwriteExisting, varabOverwriteSecurityClass
The document repository folder that will contain the documents. Precede the folder name with a backslash ( \ ). | |
The document type of the documents. Document types are represented by the HFMConstants type library constants listed in Document Type Constants. | |
The file type of the documents. File types are represented by the HFMConstants type library constants listed in Document File Type Constants. | |
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. | |
An array of flags indicating whether the corresponding documents are public or private. Pass TRUE for private, FALSE for public. | |
An array containing the names and paths of the files to be loaded. | |
The name and path of the log file for the load operation. You must specify a name and path, otherwise an error occurs. | |
Future use. You must pass a valid Boolean, but the value is ignored by this method. | |
A flag that specifies whether existing documents of the same name should be overwritten. Pass TRUE to overwrite, FALSE otherwise. | |
An array of flags that specify whether to overwrite the existing security classes of the corresponding documents. Pass TRUE to overwrite, FALSE otherwise. |