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

Free Support Forum - aspose.com

Convert Multiple sheets in a workbook into single TIFF

I would like to convert a workbook that has multiple sheet to a single TIFF… 3 sheets in a workbook to a single TIFF file.


All the examples are showing copying each sheet to a different image file.

I’ve seen this please don’t guide me here:

http://www.aspose.com/docs/display/cellsnet/Converting+Worksheet+to+Image+and+Worksheet+to+Image+by+Page


Thanks

Hi,

Thanks for your posting and using Aspose.Cells.

Please see the following sample code which converts the entire workbook into a single tiff image. Please check the source excel file used in this code. It has 3 worksheets and check the output tiff image generated by the code for your reference.

Note: Please remove .txt extension from the attached tiff image.

C#
Workbook workbook = new Workbook(“source.xlsx”);

ImageOrPrintOptions opts = new ImageOrPrintOptions();
opts.SaveFormat = SaveFormat.TIFF;

//Save entire workbook to single Tiff image
WorkbookRender wr = new WorkbookRender(workbook, opts);
wr.ToImage(“output.tiff”);