to_printer method

to_printer

Render workbook to Printer

def to_printer(self, printer_name):
    ...
ParameterTypeDescription
printer_namestrthe name of the printer , for example: “Microsoft Office Document Image Writer”

to_printer

Render workbook to Printer

def to_printer(self, printer_settings):
    ...
ParameterTypeDescription
printer_settingsaspose.pydrawing.printing.PrinterSettingsthe settings of printer, e.g. PrinterName, Duplex

to_printer

Render workbook to Printer

def to_printer(self, printer_name, job_name):
    ...
ParameterTypeDescription
printer_namestrthe name of the printer , for example: “Microsoft Office Document Image Writer”
job_namestrset the print job name

to_printer

Render workbook to Printer

def to_printer(self, printer_settings, job_name):
    ...
ParameterTypeDescription
printer_settingsaspose.pydrawing.printing.PrinterSettingsthe settings of printer, e.g. PrinterName, Duplex
job_namestrset the print job name

to_printer

Render workbook to Printer

def to_printer(self, printer_name, print_page_index, print_page_count):
    ...
ParameterTypeDescription
printer_namestrthe name of the printer , for example: “Microsoft Office Document Image Writer”
print_page_indexintthe 0-based index of the first page to print, it must be in Range [0, WorkbookRender.PageCount-1]
print_page_countintthe 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