C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Set the zoom size of the printPreviewDialog control


Posted Date: 07 May 2007    Resource Type: Code Snippets    Category: Printing

Posted By: Balamurali Balaji       Member Level: Diamond
Rating:     Points: 10



The following code set the zoom size of the printPreviewDialog control to 100%. The default size is automatic, based on the form size.

It also set the width and height of the control to full screen, as 100% zoom would only enlarge the print document within the printPreviewDialog control.



printPreviewDialog1.Width = Screen.PrimaryScreen.Bounds.Width;
printPreviewDialog1.Height = Screen.PrimaryScreen.Bounds.Height;
printPreviewDialog1.PrintPreviewControl.Zoom = 1.0;
printPreviewDialog1.ShowDialog();






Responses

Author: Smith    19 Feb 2008Member Level: Bronze   Points : 0
I learn t to set the PrintPreviewDialog Width and Height,
Any ideas to the startposition?


Author: akku    08 May 2008Member Level: Silver   Points : 2
nice one


Author: Srinivas     25 Aug 2008Member Level: Gold   Points : 1
Hi Balamurali

I have an windows application which has textbox controls.On button click i am printing the contents.

I am unable to print all the contents.
How to print the values with alignment so that they are within the page to be printed?


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to detect if your system has any printers installed?
Return to Discussion Resource Index
Post New Resource
Category: Printing


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use