Click or drag to resize
ExcelFilePrint Method (String, PrintOptions)
Prints the document to the specified printer according to specified options.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1033
Syntax
public void Print(
	string printerName,
	PrintOptions options
)

Parameters

printerName
Type: SystemString
Printer name.
options
Type: GemBox.SpreadsheetPrintOptions
Print options.
Examples

Following code demonstrates how to print the whole ExcelFile to the specified printer.

ef.Print(printerName, new PrintOptions()
{
    CopyCount = 2,
    SelectionType = SelectionType.EntireFile
});
See Also