Send raw data to print not working

前端 未结 5 867
春和景丽
春和景丽 2020-12-20 04:33

I want to send raw data to print, avoiding printer selection (fast print).

I am trying to use this helper provided by Microsoft: https://support.microsoft.com/en-us/

5条回答
  •  半阙折子戏
    2020-12-20 05:17

    Had exactly the same issue with my ZEBRA ZD420 printer. Sending ZPL string to printer only the data light flashing shortly without printing.

    I changed only

    Marshal.StringToCoTaskMemAnsi(szString);
    to 
    Marshal.StringToCoTaskMemUTF8(szString);
    

    and it works !

提交回复
热议问题