Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
122 views

Printer Commands in

This document discusses using the .NET PrintDocument class for printing to Zebra printers. While PrintDocument provides universal compatibility with any printer that has an installed driver, it has some disadvantages compared to other printing methods. PrintDocument relies on creating a large graphics object to represent the print job, reducing printing efficiency. It also lacks abilities to control printer status or functionality that are available through printer languages and SDKs. The document recommends considering alternatives like Zebra software or SDKs that can more directly interface with the printer's native language.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views

Printer Commands in

This document discusses using the .NET PrintDocument class for printing to Zebra printers. While PrintDocument provides universal compatibility with any printer that has an installed driver, it has some disadvantages compared to other printing methods. PrintDocument relies on creating a large graphics object to represent the print job, reducing printing efficiency. It also lacks abilities to control printer status or functionality that are available through printer languages and SDKs. The document recommends considering alternatives like Zebra software or SDKs that can more directly interface with the printer's native language.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

USING THE .

NET CLASS
PRINTDOCUMENT FOR PRINTING TO
A ZEBRA PRINTER
Article ID: 28196082

DETAILS
 
Topic or Information
This information is relavent to developers that want to develop an application in a  .NET
environment or programmatically print to Zebra printers

Applies To
.NET Environments Excludes ZQ110, EM220, EM220II

Details
The .NET environment provides the PrintDocument class under
the System.Drawing.Printing namespace.  This class is designed to communicate with the
printer driver to send a print job.  While using PrintDocument is inefficient compared to
other methods, it is very attractive in its universal implementation.  PrintDocument's only
real requirement is the installation of a driver that points to the appropriate printer.   This
being the case, PrintDocument is compatible with all of Zebra's printers, given that a
properly configured driver is installed.  You can find an article on how to use
PrintDocument at Microsoft: Read More>>.
One should consider using other means outside of PrintDocument when designing a print
workflow.  Some of the disadvantages of using PrintDocument include:

Greatly reduced efficiency: PrintDocument relies on a .NET graphics object in which all of


the design takes place.  Text fields, barcodes, and images can be placed in the graphics
object, and will print accordingly.  However, instead of utilizing the printer's native printer
language (such as ZPL, EPL, CPCL, or EPCL), which can represent objects such as
barcodes and text with light-weight ASCII characters, PrintDocument composes a large
graphics object and sends it directly to the printer to be printed.  In environments
necessitating a speedy printout, PrintDocument may hurt performance.
 
Inability to control printer's status-checking and other functionality:  As PrintDocument is
merely sending a graphic down to the printer driver to be printed, it has no other inherent
way to control the printer.  The printer languages and SDKs, on the other hand, provide
immense capability to query the printer for information as well as instruct it to perform
activities such as resets, blank label feeds, printing configuration labels, among other
things.
 
PrintDocument requires a driver: PrintDocument can only print to printers via their driver. 
Alternatives to PrintDocument include using established Zebra software, utilizing Zebra's
many and versatile Software Development Kits, and using the printer's native printer
language.

https://www.bing.com/ck/a?!
&&p=33881f31c617304eJmltdHM9MTY2MTQyNjg1OSZpZ3VpZD1iMWRlM2VjMy1hZTFhLTRmMjItYTVm
ZS0xMmQzZmQ3ODNmOTAmaW5zaWQ9NTQxMw&ptn=3&hsh=3&fclid=ed08ff3c-2468-11ed-a2b5-
d11abca1366a&u=a1L3ZpZGVvcy9zZWFyY2g_cT1ob3crdG8raW5zdGFsbCt6ZWJyYStnYzQyMHQrcHJpbn
RlciZ2aWV3PWRldGFpbCZtaWQ9NUEzOTA4ODYxMzg2RDRFRjgzMkY1QTM5MDg4NjEzODZENEVGODMy
RiZGT1JNPVZJUkU&ntb=1

You might also like