WesGoad
asked on
Code to print label to Zebra 2746e printer for VB.Net
How do I print to the Zebra (Eltron) 2746e using VB.net? Zebra has a program called LPrint that allowed you to select a label from a dialog box and print it without opening the Label design software, but it does not support the 2746e print driver. I started to create a similar program in VB.Net to do the same thing. I can get the program to access the path and file name to the label when it is selected, but I can not get it to print to the printer. Zebra hasn't much help with this problem. Any suggestions would be appreciated.
ASKER
These reports are created using the Zebra Software. They have a .lbl extension. Will these still print using this method?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I emailed Zebra for a Com Ref. I've seen many posts to send the epl2 commands for the label to the printer, but I don't know how to be that with VB .NET.
Thanks
Thanks
ASKER
Zebra sent me the following link to a VB.NET sample. It worked with a little head scratching and trial and error. Thanks for the help!
https://support.zebra.com/cpws/docs/zpl/zpl_elp_vbnet.htm
https://support.zebra.com/cpws/docs/zpl/zpl_elp_vbnet.htm
Pretty easy way of doing things...
Hope that helped..