如何在C#的每个打印页面上设置不同的文本? [英] how to set different text on every print pages in C#?
问题描述
我想在每个打印页面上打印发票复印件名称,复印件数量取决于用户。
如果用户给出
1然后在右边第一页角落节目原创复制品
2然后右上角第二页显示复制副本
3然后右上角第三页显示一式三份复制
4然后右下角第四页显示Quadruplicate Copy
,相同的详细信息..
怎么做C#中的printDocument ??
以及如何用副本名称创建多个具有相同详细信息的页面?
感谢高级...
I want to print the Invoice copy name on every printed pages, the number of copy depends on user.
like if user give
1 then first page on right corner show "Original Copy"
2 then second page on right corner show "Duplicate Copy"
3 then third page on right corner show "triplicate Copy"
4 then fourth page on right corner show "Quadruplicate Copy"
with same details..
How to do that with printDocument in C# ??
and how create multiple pages with same details with copy name ??
thanks in advanced...
推荐答案
目前尚不清楚你在开发什么。如果您正在为其他人开发一个软件,您应该创建自己的Print例程,每次调用printDocument 4次,每次都使用适当的文本。没有办法解决这个问题。打印驱动程序通常允许您定义奇数和偶数,以及2面打印,但每个打印需要4种不同的布局,除了调用printDocument 4次外没有自动解决方案。
It is not clear what you are developing. If you are developing a piece of software for someone else, you should create your own Print routine which will call printDocument 4 times, each time with the appropriate text. There is no way around that. Print drivers can usually allow you to define odd and even numbers, and 2 side printing but you need 4 different layouts per each print, and there is no automatic solution except for calling printDocument 4 times.
这篇关于如何在C#的每个打印页面上设置不同的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!