What makes Notepad differently under the hood than the PRINT command?

I need to send content to a printer in C # .NET in the same way as a command PRINT.

I have a Godex thermal printer with QLabel included. Now he has the opportunity to save the label as a command, which you can transfer to the printer using the command line command PRINT. The file is as follows:

^Q80,3
^W100
^H10
^P1
^S3
^AD
^C1
^R2
~Q+0
^O0
^D0
^E35
~R200
^L
Dy2-me-dd
Th:m:s
AH,0,0,1,1,0,0,X
AH,744,0,1,1,0,0,X
AH,746,560,1,1,0,0,X
AH,0,550,1,1,0,0,X
AG,160,208,1,1,0,0,
AA,234,283,1,1,0,0,Haloo
E

This works when I do something like this:

net use LPT2 \\localhost\godexUsbPrinter /yes
print /D:LPT2 label.cmd

And he prints my label beautifully.

Now, if I open it in a notebook and print it, it just prints this text for me.

, PRINT # ? , , .

, PRINT Process.Start #, - . , .

+5
1

, . PRINT , . "", Windows , . , , - , "raw", . .

, . P/Invokes winspool.Drv.

+4

All Articles