Free Support Forum - aspose.com

Cells to PNG sizing


#1

Hi

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?


#2

@hardeep17,

Thanks for your query.

Aspose.Cells does support Sheet to image feature that you may try:
https://docs.aspose.com/display/cellsnet/Converting+Worksheet+to+Different+Image+Formats

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.