Spread WPF 18
GrapeCity.Wpf.SpreadSheet.Dialogs Namespace / BuiltInDialogs Class / PrintPreview Method
The GrapeCity.Wpf.SpreadSheet.GcSpreadSheet control to work with.
An integer value indicates the printing worksheet. The default value -1 means the entire workbook is printed.
The print settings.


In This Topic
    PrintPreview Method
    In This Topic
    Opens a separate application window in which end users can preview the printing output.
    Syntax
    'Declaration
     
    Public Shared Function PrintPreview( _
       ByVal spread As GcSpreadSheet, _
       Optional ByVal sheetIndex As Integer, _
       Optional ByVal printSettings As PrintSettings _
    ) As IDialog
    'Usage
     
    Dim spread As GcSpreadSheet
    Dim sheetIndex As Integer
    Dim printSettings As PrintSettings
    Dim value As IDialog
     
    value = BuiltInDialogs.PrintPreview(spread, sheetIndex, printSettings)
    public static IDialog PrintPreview( 
       GcSpreadSheet spread,
       int sheetIndex,
       PrintSettings printSettings
    )

    Parameters

    spread
    The GrapeCity.Wpf.SpreadSheet.GcSpreadSheet control to work with.
    sheetIndex
    An integer value indicates the printing worksheet. The default value -1 means the entire workbook is printed.
    printSettings
    The print settings.
    See Also