Printing in 70% of the actuall size

G

Guest

Hi,

I've class that inherits from PrintDocument,

in this class i'm drawing to the printer a document which is printed on A4
size.

is there a way to print in once with the orginal size, and then printing in
smaller size (like 70 % from the actuall size)? like in a copy machine ...

Thanks,
Gidi.
 
N

Nicholas Paldino [.NET/C# MVP]

Gidi,

You can probably use the same code that writes to the Graphics instance
for the printer, then just adjust either the PageScale or the Transform
property to adjust the scale of the graphics object when you make the same
calls to it (you would adjust the scale so it is .70).
 
G

Guest

Thank you Nicholas,

pageScale propery works fine, my problem now, is the drawing is not effected
by it, meaning if i draw a string in positon (0,100), and the next is
(0,200), so now, the 2 strings are drowen one on eachother.

I guess that's why i need the TranslateTransform function, but no matter
what i do, it still keeps drawing one string on the other.

any idea?

Thanks,
Gidi

Nicholas Paldino said:
Gidi,

You can probably use the same code that writes to the Graphics instance
for the printer, then just adjust either the PageScale or the Transform
property to adjust the scale of the graphics object when you make the same
calls to it (you would adjust the scale so it is .70).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Gidi said:
Hi,

I've class that inherits from PrintDocument,

in this class i'm drawing to the printer a document which is printed on A4
size.

is there a way to print in once with the orginal size, and then printing
in
smaller size (like 70 % from the actuall size)? like in a copy machine ...

Thanks,
Gidi.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top