Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Printing in 70% of the actuall size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gidi - 02 Oct 2007 22:54 GMT
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.
Nicholas Paldino [.NET/C# MVP] - 03 Oct 2007 16:56 GMT
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).

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi,
>
[quoted text clipped - 9 lines]
> Thanks,
> Gidi.
Gidi - 03 Oct 2007 18:23 GMT
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

> Gidi,
>
[quoted text clipped - 16 lines]
> > Thanks,
> > Gidi.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.