Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi experts

i developed a printing application in winforms using c#, my print document have
3 lines.but printer did't stop immediately it takes some more paper empty.

how can i stop printing immediately after complication of last line?

thanks in advance
Posted
Updated 12-Jun-12 3:25am
v2

i'm having the same problem did you find any solution for that ?
 
Share this answer
 
Set the PrintPageEventArgs.HasMorePages property to false in the PrintPage event handler when you print the last of the three lines - that will tell the system the current page was the last one.
 
Share this answer
 
Comments
sandeep nagabhairava 12-Jun-12 9:41am    
i tried this but no result... actually my page size is 9.26*5.21cm. when i print
it takes one more ticket from bundle.
itsmehaboob 14-Aug-15 5:41am    
i'm having the same problem did you find any solution for that ?

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