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

Go Back  Xtreme .NET Talk > .NET > Windows Forms > PrintPreviewDialog - how to set the zoom


Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2003, 01:39 AM
hlng hlng is offline
Newcomer

Preferred language:
C#
 
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...
dialog.ShowDialog();
} // ShowPreview()


on my form, I have call the form out

PrintChecklist printchecklist = new PrintChecklist();
printchecklist.ShowPreview();


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 ?


Regards,
Derek
Reply With Quote
  #2  
Old 12-01-2003, 04:26 PM
bfellwock bfellwock is offline
Freshman

Preferred language:
VB.NET
 
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
  #3  
Old 12-04-2003, 05:51 AM
hlng hlng is offline
Newcomer

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

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

Regards,
Derek Ng
Reply With Quote
  #4  
Old 12-04-2003, 08: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
Default

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

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

Bookmarks

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 10:07 AM
using the camera to zoom and scroll mskeel DirectX 1 03-17-2004 07: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

Advertisement:







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.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
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..
subscribe