Print to Memory Sample (also referenced as Memory Image Sample)

Download Demo

The Black Ice Printer drivers can generate a printed document (image) in memory without saving the document or image on the local disk. Printing in memory used with database applications and with secure applications to prevent saving of the printed document locally.

There is an option in the Black Ice Printer Driver to generate the output file in memory “Generate output in memory”.

In order to demonstrate how use messaging interface to capture a printed document in memory, the API/ RTK (Resource Toolkit) includes the Print to Memory Samples. All of the Black Ice Printer Drivers include a messaging interface. The printer drivers communicate with applications through this interface by sending messages at different stages of the printing process. The applications capture the messages sent by the printer driver and process them.

The printer driver will send messages when the following events happen during the printing process:

  • Start of Document (StartDoc)
  • Start of Page (StartPage)
  • End of Page (EndPage)
  • End of Document (EndDoc)
  • Printer Settings changed
  • Image passed in Memory
  • Abort

The Print to Memory Samples applications are available in C++, C#, VB.NET programming languages.

To help Visual Basic, Delphi developers, the Resource Toolkit includes the BiPrnDrv.OCX that makes the process of capturing printer driver messages simple. The OCX will capture every printer driver message internally and will fire an OCX event for every message.

Source code for the Print to Memory Samples is available in C++,C#, and VB.NET. Using the Start Application feature of the Black Ice printer drivers along with the messaging interface provides a straightforward method of monitoring the printing process.



Back to Sample Comparison Chart page