Free Support Forum - aspose.com

Workbook Render to Image and set image size

I need to convert a workbook to TIFF, this is working as expected but i have a requirement to set image size. Is there any way to do for each page that is rendered out of the workbook?

Hi,


Well, I think you may try to set your image bitmap’s size according to your need when your render image using SheetRender APIs. e.g
//…
Aspose.Cells.Rendering.SheetRender sr = new Aspose.Cells.Rendering.SheetRender(worksheet, imagOrPrintOptions);
System.Drawing.Bitmap img = sr.ToImage(0);
img.Height= _;
img.Width = __;


Thank you.