Spread WPF Documentation
PrintPreview(String) Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class > PrintPreview Method : PrintPreview(String) Method
Displays the specified pages in a preview dialog.
Syntax
'Declaration
 
Public Overloads Sub PrintPreview( _
   ByVal pageRange As System.String _
) 
'Usage
 
Dim instance As GcSpreadSheet
Dim pageRange As System.String
 
instance.PrintPreview(pageRange)
public void PrintPreview( 
   System.string pageRange
)

Parameters

pageRange
Remarks
Page strings should use a dash between groups of pages and a comma when skipping pages. For example, GcSpreadSheet1.PrintPreview(“2-4, 6-8, 10”), means to preview the page from 2 to 4, 6 to 8, and page 10.
Example
This example uses the PrintPreview method.
GcSpreadSheet1.SheetCount = 4;
GcSpreadSheet1.PrintPreview("1-3");
GcSpreadSheet1.SheetCount = 4
GcSpreadSheet1.PrintPreview("1-3")
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members
Overload List