Search code examples
vb.netprintingvb6zebra-printerszpl

Printing in Zebra label printer


I'm trying to print images on a Zebra printer using ZPL commands. This is the code:

^XA
^FO10,10^XGR:ICONE.GRF,3,3^FS
^XZ

My problem is that I can't print image from the Flash Memory. I only get image printed from DRAM memory. Could some one give me some tips?


Solution

  • Why don´t you create a memory bitmap loading the image from E: into it and printing from this memory image? You could do something like:

        Dim image1 As Bitmap = CType(Image.FromFile("E:\ImageFile.bmp", True), Bitmap)
    

    You may also put a PictureBox in your form, load the image into it and call your Zebra code on that control - it´s in memory too.