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.


type SheetRender struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewSheetRenderthe construct of SheetRender, need worksheet and ImageOrPrintOptions as params

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetPageCountGets the total page count of current worksheet.
GetPageScaleGets calculated page scale of the sheet.Returns the set scale if PageSetup.Zoom is set. Otherwise, returns the calculated scale according to PageSetup.FitToPagesWide and PageSetup.FitToPagesTall.
GetPageSizeInchGet page size in inch of output image.
ToImage_Int_StringRender certain page to a file.
ToImage_IntRender certain page to a stream.
ToTiff_StreamRender whole worksheet as Tiff Image to stream.
ToTiff_StringRender whole worksheet as Tiff Image to a file.
DisposeReleases resources created and used for rendering.