When trying to print a large document to the Virtual Print Driver in a virtualization environment, the document may be imported to OnBase before it has been fully printed by the native program. This results in the document being broken up into several documents in OnBase.
To prevent this, there are two settings in the vprinter.ini file that can be configured to meet the requirements of your environment. These values are under the [PrintMonitor] settings in the vprinter.ini file:
-
PollInterval: Specifies how long to wait, in milliseconds, before polling for new or updated files.
-
PollIterations: Specifies how many times to poll for new or updated files before considering a file complete.
The polling mechanism configured with these options uses the print monitor to poll a directory, looking for new Virtual Print Driver files. However, if the print monitor takes the files as soon as they appear, the print driver may not be done writing them, resulting in multiple documents imported to OnBase. Thus, once the print monitor registers a new file, it puts the name of that file in a list and checks back at a later interval to see if the size of the file has changed since the last check. If the file size has not changed, it initiates the import process.
The PollInterval parameter specifies how long the monitor waits before checking the file again. The PollIterations parameter specifies how many times it checks back before considering the file complete, regardless of size.
For more information on the Virtual Print Driver and its INI settings, see the Virtual Print Driver module reference guide.