Prepare a ZPL command for printing the mono chrome bitmap image

后端 未结 1 1255
广开言路
广开言路 2021-01-07 11:26

I have a problem in preparing the ZPL command for printing the bitmap image on Zebra RZ400 300 dpi.

I have folling code snippet and i dont understand where i am exta

相关标签:
1条回答
  • 2021-01-07 12:17

    https://stackoverflow.com/questions/7083180/print-bmp-with-zpl?rq=1

    That should do the trick for you. As you're a new member I highly recommend you use the search feature.

    Also this line:

    var bitmapImagePath = :C:\\Sample.bmp";
    

    should be

    var bitmapImagePath = @"C:\Sample.bmp";
    

    You potentially have two options.

    If you don't need to use ZPLII, you can install the printer using the Zebra drivers. This will allow you to use the Zebra printer as you would a regular desktop printer. You can then build your label using standard .Net functions for printing, and send the document to the printer as you would a regular document programmatically.

    If this isn't an option, you'll need to create a monochrome bitmap, I've never done that myself. However you could use img2grf to convert if you don't feel like writing your converter. You'll need to convert that library into a .Net assembly, which can easily be achieved by using IKVM. For instructions on how to use IKVM simply visit HtmlUnit Conversion with IKVM and follow the instructions under the "Converting HtmlUnit to .NET" section, it's the same process to convert img2grf.

    0 讨论(0)
提交回复
热议问题