<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://davidsandor.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Professional Software Architecture : API, C#</title><link>http://davidsandor.com/blogs/tipsandtricks/archive/tags/API/C_2300_/default.aspx</link><description>Tags: API, C#</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Printing to a wireless Zebra printer ( QL320 )</title><link>http://davidsandor.com/blogs/tipsandtricks/archive/2008/02/29/printing-to-a-wireless-zebra-printer-ql320.aspx</link><pubDate>Fri, 29 Feb 2008 04:45:00 GMT</pubDate><guid isPermaLink="false">0894841b-d454-454d-9869-1643969e5001:31</guid><dc:creator>david</dc:creator><slash:comments>0</slash:comments><comments>http://davidsandor.com/blogs/tipsandtricks/comments/31.aspx</comments><wfw:commentRss>http://davidsandor.com/blogs/tipsandtricks/commentrss.aspx?PostID=31</wfw:commentRss><description>&lt;P&gt;For one of my ongoing projects I need to send print jobs to wireless industrial printers.&amp;nbsp; Specifically the Zebra QL series printers.&amp;nbsp; After much pain and a little suffering I figured it out.&amp;nbsp; There are some good documentation points on the web that discuss the actual printing 'language' CPCL/EPL/EPL2.&amp;nbsp; However if you want a quick and dirty way to print do this:&lt;/P&gt;
&lt;P&gt;Load up Zebra's Label Vista software and design a label.&lt;/P&gt;
&lt;P&gt;Put your text on the label and your bar codes where you want them.&lt;/P&gt;
&lt;P&gt;For each text element or bar code use placeholders like this:&amp;nbsp; {BARCODE1} {LABEL1}.&lt;/P&gt;
&lt;P&gt;When you have your layout the way you want it save the label and load the resultant .lbl file up in notepad.&amp;nbsp; Copy that text to your clipboard.&amp;nbsp; Now load up your favorite terminal application like PuTTY.&amp;nbsp; Connect to the printer via IP or Serial.&amp;nbsp; Paste the clipboard into the terminal window and the printer should print your label.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Well what good is that you might say?&amp;nbsp; The next step is to make your application replace the {BARCODE1} placeholders with the values you wish to print and then send that to the printer.&amp;nbsp; You basically can design a label template in Label Vista and then your application can use that template to merge your values into the placeholders in the template.&amp;nbsp; As far as connecting to the printer in your application I will cover that in a few days.&amp;nbsp; I will release a Zebra label printing API in C# that does everything you need for simple quick and dirty printing to the Zebra printers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://davidsandor.com/aggbug.aspx?PostID=31" width="1" height="1"&gt;</description><category domain="http://davidsandor.com/blogs/tipsandtricks/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://davidsandor.com/blogs/tipsandtricks/archive/tags/API/default.aspx">API</category><category domain="http://davidsandor.com/blogs/tipsandtricks/archive/tags/Zebra+Printer/default.aspx">Zebra Printer</category><category domain="http://davidsandor.com/blogs/tipsandtricks/archive/tags/Barcode/default.aspx">Barcode</category></item></channel></rss>