Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This document is designed to provide developers with a detailed understanding of how to convert a worksheet to an image file and a worksheet with multiple pages to an image file per page.
Sometimes, you might need to present worksheets as images, for example, to use them in applications or web pages. You might need to insert the images into a Word document, a PDF file, a PowerPoint presentation, or use them in some other scenario. Simply, you want to render the worksheet as an image. Aspose.Cells APIs support converting worksheets in Microsoft Excel files to images. Also, Aspose.Cells supports converting a workbook to multiple image files, one per page.
This article shows how to use the Aspose.Cells for Java API to convert a worksheet to an image. The API provides several valuable classes, such as SheetRender, ImageOrPrintOptions, WorkbookRender, and so on. The SheetRender class represents a worksheet for rendering images and has an overloaded toImage method that can convert a worksheet to image files directly with any attributes or options set.
After executing the above code, the worksheet named Sheet1 is converted into an image file SheetImage.jpg.
The output JPG

This example shows how to use Aspose.Cells to convert a worksheet from a template workbook that has several pages into one image file per page.
After executing the above code, the worksheet named Sheet1 is converted into two image files (one per page): Sheet 1 Page 1.Tiff and Sheet 1 Page 2.Tiff.
Generated image file (Sheet 1 Page 1.Tiff)

Generated image file (Sheet 1 Page 2.Tiff)

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.