Zebra TLP2844 USB Printing  
Author Message
hammerstein06





PostPosted: Visual C# General, Zebra TLP2844 USB Printing Top

I've just taken delivery of this printer, and having worked with a mobile zebra printer recently, I figured it would be relatively simple. I'm having problems printing a label from within my application, and I get a PInvoke error when trying to use the RawPrintHandler class.

Does anybody have any hints on how I print to it within my application I've created a print dialog and a print document, but all I seem to get is the actual text I'm trying to send it. I've tried EPL and CPCL, both just come out as text. I'm using Visual Studio 2005, I've installed the latest drivers and firmware from the Zebra site.



Visual C#18  
 
 
hammerstein06





PostPosted: Visual C# General, Zebra TLP2844 USB Printing Top

I appear to have found a solution;

Available on the Zebra website is a C# class which wraps calls to the Win32 Spool commands;

https://support.zebra.com/OA_HTML/csksxvm.jsp jttst0=6_50258%2C50258%2C-1%2C0%2C&jtfm0=_0_0_-1_-1_f_nv_&etfm1=&jfn=ZG15B69E1FF50D4C07760272F6D065F2189BB918AD70F353E0BB19CC7F92173E9462ECE718C9D06D6A079F7A31DE6B2F930B&oas=WO7eOLcNLF4V4I8IckKGdQ..&nSetId=16843&nBrowseCategoryId=10119

This wasn't working for me, the problem was their call to OpenPrinter had the parameters as a long, I changed it to a uint and all was fine. It prints now.

Still, would have been nice to print from the normal .NET PrintDocument.


 
 
Harley Jacome





PostPosted: Visual C# General, Zebra TLP2844 USB Printing Top

Hi,

I'm trying to print in a Zebra TLP2844 using a Pocket PC, but I am really new on that front .

I saw that you use OpenPrinter method but I don't know where this method is.

Could you help me please, about how to begin.

I really appreciate your help.