Windows Forms Topics include: windows forms, controls, components and designers

Enjoy an ad free experience by logging in. Not a member yet? Register.
Go Back  Xtreme .NET Talk > .NET > Windows Forms > PrintPreviewDialog - how to set the zoom

Thread Tools Display Modes
Old 11-05-2003, 02:39 AM
hlng hlng is offline

Preferred language:
Join Date: Oct 2003
Posts: 6
hlng is on a distinguished road
Default PrintPreviewDialog - how to set the zoom

I have the below code under 1 class file

public class PrintChecklist : PrintDocument
// show the print preview screen
public void ShowPreview()
// now, show the print dialog...
PrintPreviewDialog dialog = new PrintPreviewDialog();
dialog.Document = this;
dialog.Width = 700;
dialog.Height = 600;

// show the dialog...
} // ShowPreview()

on my form, I have call the form out

PrintChecklist printchecklist = new PrintChecklist();

By the default, the print preview dialog that come out will show automatic zoom, which is very small.
I want the print preview dialog to zoom at 75%, any way to do it ?

Reply With Quote
Old 12-01-2003, 05:26 PM
bfellwock bfellwock is offline

Preferred language:
Join Date: Jul 2003
Posts: 30
bfellwock is on a distinguished road
Default ZOOM property

Try messing with this property:
Dialog.PrintPreviewControl.Zoom = 2
Reply With Quote
Old 12-04-2003, 06:51 AM
hlng hlng is offline

Preferred language:
Join Date: Oct 2003
Posts: 6
hlng is on a distinguished road

I could not find a dialog.PrintPreviewControl.Zoom property in my program.

Derek Ng
Reply With Quote
Old 12-04-2003, 09:33 AM
Robby's Avatar
Robby Robby is offline
Ultimate Contributor
Join Date: Nov 2002
Location: Montreal, Ca.
Posts: 3,460
Robby is on a distinguished road

Derek, since you decalred dialog as PrintPreviewControl then ...

dialog.Zoom = 75
Visit...Bassic Software
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PrintPreviewDialog Print Button Does Not Work Woodster Windows Forms 3 04-29-2009 09:44 AM
PrintPreviewDialog, PrintDialog and PageSetupDialog madcrow74 Graphics and Multimedia 1 03-29-2004 11:07 AM
using the camera to zoom and scroll mskeel DirectX 1 03-17-2004 08:27 PM
Zoom in Picturebox FreewareFire Graphics and Multimedia 3 08-01-2003 01:28 PM
ASP.NET(Image rotate, zoom in,Zoom arthivb ASP.NET 0 06-12-2003 08:52 AM


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..