如何打印一张支票?支票

2023-09-05 02:54:03 作者:深秋就分

我需要写一个.NET库打印检查。没什么特别:您传递数据,来进行打印的检查。什么是做到这一点的最好方法是什么?

I need to write a .NET library for printing checks. Nothing fancy: you pass in the data, out comes the printed check. What's the best way to do this?

约束:检查的格式

推荐答案

很多人都在使用的报表生成器这一点。这是一个有点矫枉过正,但水晶报表肯定会做的工作。

A lot of people are using report generators for this. It's a bit overkill, but crystal reports will certainly do the job.

除此之外,这是有关格式化打印输出的一个基本问题。这是你的意图?

Other than that, this is a basic question about formatting printed output. Is that your intention?

查看PrintDocument类,你可以自己做:

Check out the printdocument class and you can do this yourself:

http://msdn.microsoft.com/en-us/magazine/ cc188767.aspx

如果你是远程打印检查(即,您需要提供用户可以打印出网页上的检查),然后使用PDF是实现这一目标的最简单,最保险的方法,但要注意的安全问题

If you're printing checks remotely (ie, you need to provide a check on the website that the user can print out) then using PDF is the easiest and most certain way to accomplish that, but be careful of the security implications.