在点阵打印机中打印报告的正确指南
有没有人可以在打印报告(例如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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果是我(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.