Table of Contents

ExcelFile.RenderCells Method

Overloads

ExcelFile.RenderCells(Int32, Int32, Int32, Int32, Boolean)

This method renders a range of cells into an image, and returns it.

No objects will be drawn on the cells, you can use RenderObject(Int32) to draw those.

Important note: By default this method will only render the text inside the cell, not the borders or cell fills or anything else. If you want to export an xls file to images, you need to set the parameter "exportObjects" to true, or use FlexCelImgExport

Syntax

Namespace: FlexCel.Core

public TUIImage RenderCells(Int32 row1, Int32 col1, Int32 row2, Int32 col2, Boolean drawBackground)

Parameters

<-> Parameter Type Description
row1 Int32 Index of the first row to render. (1 based).
col1 Int32 Index of the first column to render (1 based).
row2 Int32 Index of the last row to render. (1 based).
col2 Int32 Index of the last column to render (1 based).
drawBackground Boolean If true, the image will have a solid background with the color of the cells. If false, the image will have a transparent background.

Returns

An image with the rendered cells.

See also

ExcelFile.RenderCells(Int32, Int32, Int32, Int32, Boolean, Double, TUISmoothingMode, TUIInterpolationMode, Boolean)

This method renders a range of cells into an image, and returns it.

No objects will be drawn on the cells, you can use RenderObject(Int32) to draw those.

Important note: By default this method will only render the text inside the cell, not the borders or cell fills or anything else. If you want to export an xls file to images, you need to set the parameter "exportObjects" to true, or use FlexCelImgExport

Syntax

Namespace: FlexCel.Core

public TUIImage RenderCells(Int32 row1, Int32 col1, Int32 row2, Int32 col2, Boolean drawBackground, Double dpi, TUISmoothingMode aSmoothingMode, TUIInterpolationMode aInterpolationMode, Boolean antiAliased)

Parameters

<-> Parameter Type Description
row1 Int32 Index of the first row to render. (1 based).
col1 Int32 Index of the first column to render (1 based).
row2 Int32 Index of the last row to render. (1 based).
col2 Int32 Index of the last column to render (1 based).
drawBackground Boolean If true, the image will have a solid background with the color of the cells. If false, the image will have a transparent background.
dpi Double Resolution of the image to create in dots per inch. If creating the image for the screen, use 96 dpi.
aSmoothingMode TUISmoothingMode Smoothing mode used to render the object. For more information, see "System.Drawing.Drawing2D.SmoothingMode"
aInterpolationMode TUIInterpolationMode Interpolation mode used to render the object. For more information, see "System.Drawing.Drawing2D.InterpolationMode"
antiAliased Boolean If true text will be antialiased when rendering.

Returns

An image with the rendered cells.

See also

ExcelFile.RenderCells(Int32, Int32, Int32, Int32, Boolean, Double, TUISmoothingMode, TUIInterpolationMode, Boolean, Double)

This method renders a range of cells into an image, and returns it.

No objects will be drawn on the cells, you can use RenderObject(Int32) to draw those.

Important note: By default this method will only render the text inside the cell, not the borders or cell fills or anything else. If you want to export an xls file to images, you need to set the parameter "exportObjects" to true, or use FlexCelImgExport

Syntax

Namespace: FlexCel.Core

public TUIImage RenderCells(Int32 row1, Int32 col1, Int32 row2, Int32 col2, Boolean drawBackground, Double dpi, TUISmoothingMode aSmoothingMode, TUIInterpolationMode aInterpolationMode, Boolean antiAliased, Double aPageScale)

Parameters

<-> Parameter Type Description
row1 Int32 Index of the first row to render. (1 based).
col1 Int32 Index of the first column to render (1 based).
row2 Int32 Index of the last row to render. (1 based).
col2 Int32 Index of the last column to render (1 based).
drawBackground Boolean If true, the image will have a solid background with the color of the cells. If false, the image will have a transparent background.
dpi Double Resolution of the image to create in dots per inch. If creating the image for the screen, use 96 dpi.
aSmoothingMode TUISmoothingMode Smoothing mode used to render the object. For more information, see "System.Drawing.Drawing2D.SmoothingMode"
aInterpolationMode TUIInterpolationMode Interpolation mode used to render the object. For more information, see "System.Drawing.Drawing2D.InterpolationMode"
antiAliased Boolean If true text will be antialiased when rendering.
aPageScale Double Page scale. Use 1 for 100%

Returns

An image with the rendered cells.

See also

ExcelFile.RenderCells(Int32, Int32, Int32, Int32, Boolean, Double, TUISmoothingMode, TUIInterpolationMode, Boolean, Double, Boolean, Boolean)

This method renders a range of cells into an image, and returns it.

No objects will be drawn on the cells, you can use RenderObject(Int32) to draw those.

Important note: By default this method will only render the text inside the cell, not the borders or cell fills or anything else. If you want to export an xls file to images, you need to set the parameter "exportObjects" to true, or use FlexCelImgExport

Syntax

Namespace: FlexCel.Core

public abstract TUIImage RenderCells(Int32 row1, Int32 col1, Int32 row2, Int32 col2, Boolean drawBackground, Double dpi, TUISmoothingMode aSmoothingMode, TUIInterpolationMode aInterpolationMode, Boolean antiAliased, Double aPageScale, Boolean forceBackgroundTransparent, Boolean exportObjects)

Parameters

<-> Parameter Type Description
row1 Int32 Index of the first row to render. (1 based).
col1 Int32 Index of the first column to render (1 based).
row2 Int32 Index of the last row to render. (1 based).
col2 Int32 Index of the last column to render (1 based).
drawBackground Boolean If true, the image will have a solid background with the color of the cells. If false, the image will have a transparent background.
dpi Double Resolution of the image to create in dots per inch. If creating the image for the screen, use 96 dpi.
aSmoothingMode TUISmoothingMode Smoothing mode used to render the object. For more information, see "System.Drawing.Drawing2D.SmoothingMode"
aInterpolationMode TUIInterpolationMode Interpolation mode used to render the object. For more information, see "System.Drawing.Drawing2D.InterpolationMode"
antiAliased Boolean If true text will be antialiased when rendering.
aPageScale Double Page scale. Use 1 for 100%
forceBackgroundTransparent Boolean If true the background of the image will be transparent for the cells that don't have fill, even if drawBackground is true.
exportObjects Boolean If false, only the cells themselves will be rendered, with no borders, images, etc. If true, objects will be rendered too.

Returns

An image with the rendered cells.

See also