Printing Without User Interaction
Black Ice Printer Driver API

Download the Printer Driver Demo | Online Manual | Purchase |

The Black Ice printer drivers include AutoPrint controls (BiAutoPrint) which can be used to programmatically print Microsoft Office, Visio, Text, HTML, AutoCAD and PDF documents. Using the BiAutoPrint controls, developers can easily create batch converter applications capable of processing thousands of documents without any user interaction. In addition to providing automated printing, the controls can also be used to programmatically change the default printer on the system.

The BiAutoPrint functionality is provided as both a DLL and an ActiveX control to accommodate a range of programming languages including C/C++ and VB/Delphi/C#.NET developers.

Using the BiAutoPrint controls is as easy as calling the BIAPInitialize() function to initialize the printing control and then calling the  BIAPStartPrinting() function for each document you need to print. Pass the name of the file to be printed and the name of the target printer as parameters, and the BiAutoPrint control will do the printing for you.  After printing the document is done, use the BIAPEndPrinting() function to signal the end of the printing to the control, so a new document can be printed. The end of the printing can be detected using multiple methods, one of them would be by monitoring the print queue using the existing Black Ice functionality.

A second, more efficient way to detect when printing has finished would be taking advantage of the Black Ice printer driver messaging interface to capture the EndDoc message that is sent every time a document has finished printing.

Using the BIAPGetDefaultPrinter() and BIAPSetDefaultPrinter() functions, developers can retrieve and change the default printer on the system.

In addition to providing the BiAutoPrint DLL and ActiveX controls with the Black Ice Printer Driver Resource Toolkits, developers will also be provided with full source code for these components, allowing them to expand the functionality of these controls to include support for additional file formats.

The Resource Toolkit contains two sample applications (Auto Print and Batch Converter) with full source code written in C++ and Visual Basic which demonstrate how to develop applications capable of printing without user interaction. These simple but powerful samples can assist developers looking to build applications that can print out Microsoft Office documents such as Word, Excel, Power Point, HTML files, Text files and Adobe PDF files without any user interaction.

Some of the business applications of the auto-print technology are:

  • Fax server receives a Microsoft Office document from a client and automatically converts it to faxable TIFF.

  • Print to e-mail

  • Web based upload script to accept an Office file, convert it to  TIFF or JPEG and display the results in a browser

  • Desktop fax software

  • Archiving application

  • Any applications that requires server based document conversion

  • Batch converters

The Auto Print sample provides developers with a framework for creating an application which will perform document conversion either by printing without user interaction, or to create applications which perform document conversion through the Black Ice printer without the user knowing that printing is taking place.

Also, the Black Ice printer drivers include a Batch Converter sample which can be used for automated document conversion by printing without user interaction.

Both the Auto Print and Batch Converter samples can be enhanced by developers to include support for additional file types, as required by the target application.

Home > Printer Drivers > API Features > Printing Without User Interaction

 
 © Black Ice Software, LLC 1989-2006   Contact Us: 603-882-7711 or Sales@BlackIce.com