System.Drawing.Graphic.VisibleClipBounds

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a program that prints 2 different reports and I have 2 different
printers (hp 9000, hp9050). The first report prints perfectly on both
printers. The second only prints pefectly on the 9000. On the 9050, I only
get a small square's worth in the upper left corner.

I've narrowed the problem down to the VisibleClipBounds(VCB) property of the
Graphic object I'm using to do the drawing. For some reason, on the second
report the VCB gets set to unusually low numbers when printing to the 9050.
I am not modifying the clip bounds on either report, so I am unsure why it
changes.

The only thing I do change is the
Graphic.PageUnit = System.Drawing.GraphicsUnit.Document;
however, this is the first line for both drawing functions. In the second
function, I've tried using both
Graphic.Clip.MakeInfinite();
Graphic.ResetClip();
neither one seem to change the VCB

Anyone have any ideas as to why it would do this?
 
Back
Top