|
-
May 22nd, 2004, 05:22 PM
#1
Thread Starter
Frenzied Member
printer problem with the printpreview control along wiith the printdocument class
Dear all,
I have made a report for displaying workers data and images using vb.net .
i used a print document control, and a print privew control.
after a very hard work for a couple of days. i managed to understand how this manual reporting technique works,
the report now is in a very good shape.
if it is a mullti oages. it works fine for viewing on screen.
when i press the print bottom the printing box keeps counting to infinity ( no., of pages far exceeds the real no. of pages in the view.)
can any one explain in details what is this problem???
THX in Advance
-
May 24th, 2004, 03:31 PM
#2
Addicted Member
I've had a similar problem before. Mine was because the code for the printing [some variable] were not reset after the print preview.
I guess your using global variable. I can help if I see your code, can you post it?
-
May 31st, 2004, 01:45 PM
#3
Thread Starter
Frenzied Member
dear robymix,
i figured out what is the problem, i will advise you the solution.
in the report document of vb.net, each time a print order is given the printpage event of the print document is invoked. so you should place the printing routine in this event. my mistake was that i coded the print routine in the startup of the page. so it is only done once then every other print jobs is not executed.
I hope this could help you
BST RGDS
-
May 31st, 2004, 05:00 PM
#4
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|