Thanks for your posting and using Aspose.Cells.
Yes, you are right. It throws exception but when you use SaveFormat.TIFF in Save() method, then exception is not thrown and tiff image is generated successfully.
We have tested it with the following code and it works fine. Changes are highlighted in red color.
var wb = new Workbook(filePath);
wb.Save(filePath + “.out.tiff”, SaveFormat.TIFF);
Hi mshakeel.faiz and thanks for your help,
Thanks for your feedback and using Aspose.Cells.
We have logged an improvement ticket to support this feature. We will look into it and implement it if possible. Once the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSNET-44279 - Workbook.Save in Tiff format causes a null reference exception because of not using SaveFormat.TIFF