开发者

Send data to thermal printer [duplicate]

This question already has answers here: 开发者_运维知识库 Closed 10 years ago.

Possible Duplicate:

.NET code to send ZPL to Zebra printers

My company has a Eltron 2543 thermal printer. I'm developing an VB.NET application incorporating FedEx web services to print off shipping labels.

I can save off the data file without a problem, but I was wondering how I send this data stream to a shared printer on a network. Do I need to include the Eltron 2543 driver in my solution? Sort of lost here and would love if someone could point me in the right direction.

Some solutions I've tried haven't work so I guess I'm looking for an expert who has dealt with printers (particularly thermal) to get me moving in the right direction.

Thanks.


You want to use Win32 spooler functions. I use this code all the time to send ZPL print jobs directly to networked Zebra thermal label printers. You can send bytes, a file stream, or a string.

I've never needed any drivers, just the network path to the printer and its worked every time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜