开发者

how to print to Printronix Printer?

开发者 https://www.devze.com 2023-01-28 11:52 出处:网络
Does someone has already printed to a printronix printer (serie t5000r) using .NET (visual basic or C#) ?

Does someone has already printed to a printronix printer (serie t5000r) using .NET (visual basic or C#) ?

We already have the file (txt) with the code to generate the label until I know the code it's PGL.

What've done was to use file.copy() to send the file to the LPT1 port (we use this method with Zebra printers and it works fine) but the printer print plain text instead of the label with it's format (barcode, titles, etc).

Any idea?

Here is the label code, thank you in advance:

^CONFIG

SFCC;94

END

^CONFIG

LEFT MARGIN;5

END

^PAPER;LENGTH 80

^PAPER;WIDTH 60

^PAPER;PORTRAIT

^CREATE;ds-label

FONT;FACE 92250

ALPHA

AF2;100;DARK;POINT;8;6;45;40

AF4;100;DARK;POINT;13;6;45;40

AF60;100;DARK;POINT;18;6;45;40

AF61;100;POINT;22;6;30;30

STOP

FONT;FACE 93779

ALPHA

POINT;5;6;10;0;Some data 1:

POINT;10;6;10;0;Some data 2:

POINT;15;6;10;0;Delivery Address:

POINT;20;6;10;0;NSC Name:

POINT;24;6;10;0;CODE barcode:

POINT;34;6;10;0;CODE number:

AF63;17;DARK;POINT;37;6;46;23

POINT开发者_如何学编程;39;6;10;0;PID:

AF64;26;DARK;POINT;41;6;28;14

POINT;43;6;10;0;Label Code:

AF65;8;POINT;44;6;15;0

POINT;46;6;10;0;Date:

AF66;10;POINT;47;6;15;0

STOP

BARCODE

C3/9;X1;H10;BF10;17;26;8

STOP

END

^EXECUTE;ds-label

^AF2;ALVSBORGSH. YYY-XXX

^AF4;IMMINGHAM PORT IMPORTS

^AF60;THE CITY

^AF61;Great Britain

^BF10;11111111111111111

^AF63;11111111111111111

^AF64;AAAAAAY1T1MMA7290B11111111

^AF65;0067PXXX

^AF66;2008-10-15

^NORMAL

^CONFIG RESET END


I guess your text get intercepted somewhere on the way and rendered to a page instead of sent directly to the printer port. I found this article - How to send raw data to a printer by using Visual C# .NET - that may be of help.

0

精彩评论

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