ComponentOne Preview Classic for WinForms: Preview Classic for WinForms Task-Based Help > Setting the Default Zoom Mode

Setting the Default Zoom Mode

To set the default zoom mode, set the ZoomMode property to either ActualSize, FullPage, PageWidth, TwoPages, FourPages, PageArray, or Custom. This property can be set at either in the designer or in code.

In the Designer

1.   Locate the PreviewPane property for C1PrintPreview in the Properties window and expand the properties node.

2.   Set the ZoomMode property to PageWidth.

 

In Code

Add the following code to the Form_Load event after the EndDoc method:

      Visual Basic

Me.C1PrintPreview1.C1PreviewPane.ZoomMode = C1.Win.C1PrintPreview.ZoomModeEnum.PageWidth

      C#

this.c1PrintPreview1.C1PreviewPane.ZoomMode = C1.Win.C1PrintPreview.ZoomModeEnum.PageWidth;

This topic illustrates the following:

When the document loads, the page zooms into the page width.

 


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.