• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

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

 

 

1 REPLY 1
HP Recommended

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,

 

ExpertOne

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
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.