SheetRender.ToPrinter

ToPrinter(string)

Render worksheet to Printer

public void ToPrinter(string printerName)
ParameterTypeDescription
printerNameStringthe name of the printer , for example: “Microsoft Office Document Image Writer”

See Also


ToPrinter(string, string)

Render worksheet to Printer

public void ToPrinter(string printerName, string jobName)
ParameterTypeDescription
printerNameStringthe name of the printer , for example: “Microsoft Office Document Image Writer”
jobNameStringset the print job name

See Also


ToPrinter(PrinterSettings)

Render worksheet to Printer

public void ToPrinter(PrinterSettings printerSettings)
ParameterTypeDescription
printerSettingsPrinterSettingsthe settings of printer, e.g. PrinterName, Duplex

See Also


ToPrinter(PrinterSettings, string)

Render worksheet to Printer

public void ToPrinter(PrinterSettings printerSettings, string jobName)
ParameterTypeDescription
printerSettingsPrinterSettingsthe settings of printer, e.g. PrinterName, Duplex
jobNameStringset the print job name

See Also


ToPrinter(string, int, int)

Render worksheet to Printer

[Obsolete("Use ToPrinter(string PrinterName) and ImageOrPrintOptions.PageIndex, PageCount instead.")]
public void ToPrinter(string printerName, int printPageIndex, int printPageCount)
ParameterTypeDescription
printerNameStringthe name of the printer , for example: “Microsoft Office Document Image Writer”
printPageIndexInt32the 0-based index of the first page to print, it must be in Range [0, SheetRender.PageCount-1]
printPageCountInt32the number of pages to print, it must be greater than zero

Remarks

NOTE: This method is now obsolete. Instead, please use ToPrinter(string PrinterName) and ImageOrPrintOptions.PageIndex, PageCount to set the first page and the number of pages to print. This property will be removed 12 months later since December 2021. Aspose apologizes for any inconvenience you may have experienced.

See Also