Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 .....................
Posted

1 solution

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.
 
Share this answer
 
Comments
Member 8395835 30-Apr-13 6:13am    
I know all that PrintPage event its working fine but give me another link or any solution
for sub pages
jsolutions_uk 30-Apr-13 6:32am    
Can't you just maintain some counter that can be incremented and used to determine the contents of that "X copy" value for the page that you are rendering next?
Member 8395835 6-Jun-13 9:08am    
Please give me Small Example of counter.......
I can't Understood
Member 8395835 6-Jun-13 9:10am    
Please give me Small Example of counter........
I can't understood what you said ........

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900