We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells to PNG sizing


I want to convert excel to png and set size of png file based on some calculations. How do i get page size in points and how do i set size of final image?


Thanks for your query.

Aspose.Cells does support Sheet to image feature that you may try:

Also, you may try to use SheetRender.GetPageSize to get the size of output page. Moreover, ImageOrPrintOptions.SetDesiredSize(int width, int height) to set your desired output image size for your needs.

Hope, this helps a bit.