SheetRender class

SheetRender class

Represents a worksheet render which can render worksheet to various images such as (BMP, PNG, JPEG, TIFF..) The constructor of this class , must be used after modification of pagesetup, cell style.

The SheetRender type exposes the following members:

Constructors

ConstructorDescription
initthe construct of SheetRender, need worksheet and ImageOrPrintOptions as params

Properties

PropertyDescription
page_countGets the total page count of current worksheet.
page_scaleGets calculated page scale of the sheet.
Returns the set scale if PageSetup.zoom is set. Otherwise, returns the calculated scale according to PageSetup.fit_to_pages_wide and PageSetup.fit_to_pages_tall.

Methods

MethodDescription
to_imageRender certain page to a file.
to_imageRender certain page to a stream.
to_tiffRender whole worksheet as Tiff Image to stream.
to_tiffRender whole worksheet as Tiff Image to a file.
to_printerRender worksheet to Printer
to_printerRender worksheet to Printer
to_printerRender worksheet to Printer
to_printerRender worksheet to Printer
to_printerRender worksheet to Printer
get_page_size_inchGet page size in inch of output image.
custom_printClient can control page setting of printer when print each page using this function.
disposeReleases resources created and used for rendering.

See Also