Click here to Skip to main content
15,867,851 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am printing a report from datatable through PrintDocument. The problem is it goes to infinite loop and it is printing the same data on all the pages. I have used e.HasMorePages = True.
Posted

1 solution

Your code is apparentlty not tracking what it has printed (what page it's on) between calls to the PrintPage handler.

Without seeing your code, it's impossible to tell you what you did wrong.
 
Share this answer
 

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