Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The Aspose.Cells.Rendering.SheetRender API converts a worksheet to an image file with any specified attributes, for example, image format, paginated sheets, etc. Several image formats are supported, including BMP, GIF, JPG, TIFF, and EMF.
When you use the sheet‑to‑image feature, the output image has whitespace, that is, a border, around it by default. You can remove this by setting the top, bottom, left, and right page‑setup margins for the source worksheet to 0, and by specifying the Aspose.Cells.Rendering.ImageOrPrintOptions attributes accordingly.
The following code snippet removes the whitespace around the data in the output image.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.