ImageControls 3.1 Application NoteImageControls Toolkit 3.1 is the latest release of the Kofax ImageControls Toolkit product. |
To access the following Web pages for this release, please click on the desired page's link. Application Notes - Error Codes - Frequently Asked Questions - Revision Levels - Supported Configurations |
Printing Multi-page TIFF FilesIn the last issue of this newsletter we demonstrated how to scan to Multi-page TIFF files. In this issue we will show how to utilize the new ImageControls KPrnt control to print Multi-page TIFF files. The source code shown here was written to take advantage of some of the new features in Visual Basic 4.0 such as the 'With' statement. Open a new Visual Basic project and add a Common Dialog control, SSPanel control, KPrnt control to a form. Create a control array of Command buttons as shown below.
In the Form's declaration section declare a couple of variables for global use:
Open the Form QueryUnload event and enter the following code:
Open the Command1 Click event and add the following code:
Note the use of the 'With' statement above. Open the KPrnt1 BatchStart event and initialize the page counter:
Finally, open the KPrnt1 PageStart event and enter the following code:
When you run the program, you will first select a file to print. The KPACTIONSTART is then initiated and images will be sent to the printer until the last page in the file is printed.
|
