How to Make a Zebra Enterprise Printer Driver Based Application Print Line by Line After Writing to the Printer?

Article ID: 86570698

Question

How to Make a Zebra Enterprise Printer Driver Based Application Print Line by Line After Writing to the Printer?

Answer

The PRINT_DrawText/BarCode/BitBlt/Polyline API calls are queued until the PRINT_EndPage function call is made then the whole page is printed.

Call the PRINT_EndPage API function to end the current page and send the print command to the printer. This will print the current page in the document.
  1. A printer document is started with the PRINT_StartDoc API call and ended with the PRINT_EndDoc API call.
  2. The print areas within the document are set by the PRINT_StartPage and PRINT_EndPage API calls.
  3. When the PRINT_EndPage API is called, the current page in the document is sent to the printer.
  4. To print a document line by line after each time a PRINT_DrawText/BarCode/BitBlt/Polyline API call is made, you need to call the PRINT_EndPage function to send the current data to the printer then call the PRINT_StartPage function before you can start writing the next line.
  5. Basically, you must treat each piece of data or line to be printed as a separate page.

Note
The Zebra Enterprise CE Printer Driver provides the ability for applications to print bar codes, text, bitmaps and lines. This document comes as part of the MC50 Printer Driver package.