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

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1018
Syntax
public void Print(
	string printerName
)

Parameters

printerName
Type: SystemString
Printer name.
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