[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.PrintToDocument

PrintToDocument Method

PrintToDocument(int, PrintSettings)

Prints the GcSpreadSheett to a document which can be displayed by DocumentViewer control.

Declaration
public IDocumentPaginatorSource PrintToDocument(int sheetIndex = -1, PrintSettings printSettings = null)
Public Function PrintToDocument(Optional sheetIndex As Integer = -1, Optional printSettings As PrintSettings = Nothing) As IDocumentPaginatorSource
Parameters
Type Name Description
int sheetIndex

An integer value indicates the printing worksheet. The default value -1 means the entire workbook is printed.

PrintSettings printSettings

The print settings.

Returns
Type Description
IDocumentPaginatorSource

A IDocumentPaginatorSource object that contains paginated content and can displayed by DocumentViewer control.