-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Printers Archive
- Print ZPL in HP Laser

Create an account on the HP Community to personalize your profile and ask a question

08-27-2014 02:45 AM
Hi
We designed Label in Zebra designer and want to print in HP laser jet using VB.net.
we exported Label design as text and tried in print in HP laser jet we are getting printing like text not a barcode.
Sample code is below,
Dim pText As New StringBuilder
pText.AppendLine("^PQ1,0,1,Y^XZ")
pText.AppendLine("^XA^ID000.GRF^FS^XZ")
pText.AppendLine("^XA^ID001.GRF^FS^XZ")
pText.AppendLine("^XA^ID002.GRF^FS^XZ")
pText.AppendLine("^XA^ID003.GRF^FS^XZ")
pText.AppendLine("^XA^ID004.GRF^FS^XZ")
pText.AppendLine("^XA^ID005.GRF^FS^XZ")
pText.AppendLine("^XA^ID006.GRF^FS^XZ")
pText.AppendLine("^XA^ID007.GRF^FS^XZ")
pText.AppendLine("^XA^ID008.GRF^FS^XZ")
MessageBox.Show(pText.ToString.Trim, "Printer Name", MessageBoxButtons.OK)
RawPrinter.SendToPrinter(" printing", pText.ToString, printer) 'print the string
OUTPUT is as below
^PQ1,0,1,Y^XZ
^XA^ID000.GRF^FS^XZ
^XA^ID001.GRF^FS^XZ
^XA^ID002.GRF^FS^XZ
^XA^ID003.GRF^FS^XZ
^XA^ID004.GRF^FS^XZ
^XA^ID005.GRF^FS^XZ
^XA^ID006.GRF^FS^XZ
^XA^ID007.GRF^FS^XZ
^XA^ID008.GRF^FS^XZ
How to convert ZPL into HP supported format ?
Thanks in advance
Parthiban
08-28-2014 07:04 AM
HI,
I found a similar thread on forum you can refer: http://h30499.www3.hp.com/t5/Print-Servers-Network-Storage/Programati-cally-send-PDF-file-via-VB-NET...
You can also refer HP bar code soluton page: http://www.hp.com/sbso/product/printing/laserjetfonts/barcode.html
Thanks,
Although I am an HP employee, I am speaking for myself and not for HP.
*Say thanks by clicking the "Kudos!" which is on the left. Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue
