PreviewPages Property (Viewer)
In This Topic
Gets or sets the number of pages to preview when loading a report. Setting this property to a value less than or equal to 0 will result in all pages being loaded and available for preview.
Syntax
'Declaration
Public Property PreviewPages As Integer
public int PreviewPages {get; set;}
Property Value
The number of pages to preview. A value less than or equal to 0 indicates that all pages of the report should be loaded and available for preview.
Example
This example shows how to set the PreviewPages property programmatically in a WinForms application that uses the Viewer control.
viewer.PreviewPages = 10;
See Also