在点阵打印机中打印报告的正确指南

发布于 2024-08-25 03:55:49 字数 192 浏览 2 评论 0原文

有没有人可以在打印报告(例如XtraReports)方面提供一些适当的指导 在点阵打印机中?或在点阵打印机中打印任何信息。我可以像在喷墨/激光打印机中打印一样打印报告吗?我应该使用 Stream to LPT1,将报告导出为 RTF 并打印为 bytes[] 吗?使用转义码?有关上述目标 C# .NET 的任何信息吗?我应该将每个属性的业务对象打印到特定位置吗?如何?

Is there anyone that could give some proper guideness in Printing Reports (e.g. XtraReports)
in Dot Matrix Printers? Or any information printing in Dot Matrix Printers. Can i just print the report as i could print in InkJet/Laser printers? Should i use Stream to LPT1, export the report as RTF and print as bytes[]? Use Escape Codes? Any info for the above targeting C# .NET? I should handle printing my business object for every property to a specific location? HOW?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿哥们儿 2024-09-01 03:55:49

如果是我(20 年前就会这样),我会集中精力用 GDI 正确编写文档,将其作为一个良好的、结构良好的 C# 程序。从那里Windows可以将其呈现在屏幕上或几乎任何您有驱动程序的打印机上。

让 Windows 担心打印驱动程序将 GDI 文档实际渲染到纸张上并处理系统事务,例如它连接到哪个端口(USB、并行等)以及所有令人讨厌的协议细节。

请不要将东西连接到“LPT1”、“COM”端口或任何其他垃圾端口。您的管理员和软件的未来用户会因此讨厌您。

If it were me (and 20 years ago it would have been) I'd concentrate on writing the document in GDI properly as a good, well-structured C# program. From there Windows can render it onscreen or to just about any printer you've got drivers for.

Let Windows worry about the print drivers for actually rendering the GDI document onto paper and handling system things like what port it's connected to (USB, Parallel, etc..) and all of the nasty protocol details.

Please don't wire things to "LPT1", "COM" ports or any of that crap. Your admins and future users of your software will hate you for it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文