在C#中的每个打印页面上设置不同的文本 [英] Setting different text on every print pages in C#

查看:69
本文介绍了在C#中的每个打印页面上设置不同的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在每个打印页面上打印发票复印件名称,复印件数取决于用户。假设用户给出1然后右上角的第一页显示原始复制,2然后第二页将显示复制复制,3将显示三份复制,4将显示具有相同细节的四份复制。 ..



你如何使用C#中的printDocument做到这一点?如何用副本名称创建具有相同细节的多个页面?



请回复我................ .....

I want to print the invoice copy name on every printed pages, the number of copy depends on the user. Say if the user gives 1 then the first page in the right corner shows "Original Copy", 2 then second page will show "Duplicate Copy", 3 will show "triplicate Copy", 4 will show "Quadruplicate Copy" with same details...

How do you do that with printDocument in C#? And how can I create multiple pages with the same details with copy name?

Please Reply me .....................

推荐答案

你应该可以挂钩 PrintPage事件 [ ^ ]并在每次收到活动时更改保存X copy值的变量。



我希望这对你来说已经足够了。
You should be able to hook into the PrintPage event[^] and change whatever variable holds the "X copy" value, each time you receive the event.

I hope that is enough of a start for you.


这篇关于在C#中的每个打印页面上设置不同的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆