Free Support Forum - aspose.com

Save entire Workbook to a single image file?

I'm using Aspose.NET Cells for opening and saving an entire Excel Workbook to a TIFF image file. I'm currently looping through each Worksheet and calling the SheetToImage method. I was thinking it would append to the previous image but it's not - it's overwriting it.

I need to be able to save an entire Workbook, every page in every Worksheet, out to a single, multi-paged TIFF image.

How do I do this?

Thanks,

Ryan

Hi Ryan,

The feature is not available (create a multiple paged tiff image file), I have logged your feature request into our issue tracking system with an issue id: CELLSNET-15822. We will look into it and get back to you if we can support it.

Thank you.

Hi,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please try the attached latest version of Aspose.Cells and consult the following sample code:

workbook.Open(path + fi.Name);<?xml:namespace prefix = u1 />

ImageOrPrintOptions image = new ImageOrPrintOptions();

image.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;

WorkbookRender wbr = new WorkbookRender(workbook, image);

wbr.ToImage(path + fi.Name + ".tiff");


Thank You & Best Regards,