hlng Posted November 5, 2003 Posted November 5, 2003 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 Quote
bfellwock Posted December 1, 2003 Posted December 1, 2003 ZOOM property Try messing with this property: Dialog.PrintPreviewControl.Zoom = 2 Quote
hlng Posted December 4, 2003 Author Posted December 4, 2003 Hi, I could not find a dialog.PrintPreviewControl.Zoom property in my program. Regards, Derek Ng Quote
Moderators Robby Posted December 4, 2003 Moderators Posted December 4, 2003 Derek, since you decalred dialog as PrintPreviewControl then ... dialog.Zoom = 75 Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.