bobpark
May 25th, 2002, 05:27 PM
I am attempting to print a page using the PrintDocument control.
The print preview shows the page perfectly, but the actual printed page gets clipped at what seems to be the boundries of the Print OK dialog box when the user clicks OK.
When I debug and break just before the "Graphics g = ev.Graphics" statement in my PrintPage event handler,then resume it will "sometimes" print properly.
It seems like there is some sort of timing issue here, perhaps there's not enoug time for the print device characteristics to get set wherever they are set?
Any suffestions on where to look next?
Thanks!
The print preview shows the page perfectly, but the actual printed page gets clipped at what seems to be the boundries of the Print OK dialog box when the user clicks OK.
When I debug and break just before the "Graphics g = ev.Graphics" statement in my PrintPage event handler,then resume it will "sometimes" print properly.
It seems like there is some sort of timing issue here, perhaps there's not enoug time for the print device characteristics to get set wherever they are set?
Any suffestions on where to look next?
Thanks!