On Fri, 09 May 2008 05:52:01 -0700, Gidi <sh*****@hotmail.com.dontspam>
wrote:
i found the PageScale property, and as i understand it changes my page
size
(in my case it's 70% smaller).
If you're talking about the Graphics.PageScale property, it doesn't
exactly change your page size. It changes the scaling between "world
coordinates" and "page units". This is probably not exactly what you want
because...
the problem is that if i use it, it doesn't effect the font size or the
image size that i'm drawing(printing).
Right, because those things carry with them their own units that are
applied independently. I think that there may be some way to adjust how
those are drawn. However, there's a simpler way. Use the
Graphics.ScaleTransform() method instead. This works similarly to how the
PageScale property does, but should apply equally to _all_ graphics
rendered.
is that mean that i have to have 2 different class, one for printing my
document in A4 Size and the second to print it 70% smaller?
Whether you need two different classes depends on how you've designed your
code. It's entirely possible to design a single class such that it allows
you to specify scaling that's applied when it draws its graphics. Whether
you follow that approach or use two different classes is up to you.
Pete