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:
Thanks
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.
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”);