Dos based printing using C#.net

2019-04-10 16:38发布

i m using Dotmatrix printer EPSON for printing the reports, and i need the of how to print the reports without using crystalReport and print dialog, i.e. i want the code for DOS based printing in C#.net.........

3条回答
冷血范
2楼-- · 2019-04-10 17:14

I know a very old and dirty way. Just open LPT1 (or the printer port you are using) as a stream and output the characters.

查看更多
唯我独甜
3楼-- · 2019-04-10 17:27

Does your printer appear in windows? In other words, can your print to it from notepad? Then you can still use the System.Drawing.Printing namespace and send data to your printer that way.

This is if you need to print anything other than character data - otherwise, do like tekBlues said.

查看更多
冷血范
4楼-- · 2019-04-10 17:30
登录 后发表回答