CreateDocuments method

The CreateDocuments method uses the Setup DCO file to determine the document type that is associated with each page in a batch and creates the required document objects.

This method is normally called after the page identification task to assign pages to documents within the runtime hierarchy.

Syntax

VBScript
oDCO.CreateDocuments ( ) as Boolean.
C#
bool CreateDocuments()

Applies to

Batch objects only.

Arguments

None.

Returns

Returns true if successful; returns false if unsuccessful.

VBScript example

This example reads the Setup DCO file (BDOcs.xml), creates the document objects, and confirms that the batch conforms to the document integrity rules.
Call oDCO.ReadSetup ("c:\Datacap\BDOcs\dco_APT\BDOcs.xml")
Call objBatch.CreateDocuments
Call objBatch.CheckIntegrity