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

Free Support Forum - aspose.com

Excel to Tiff Conversion issue - Index was outside the bounds of the array

Hi Team,

We are using Aspose Framework (Aspose.cells dll version 8.5.1).
While trying to convert excel file to tiff image, below error is being thrown-

exception message - Index was outside the bounds of the array.
StackTrace - at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at OfficeDocToTIFF.Program.ExcelToTiff(String Sourcefile, String destinationpath) in C:\xyz\Program.cs:line 220

Exception is being thrown at this line of code-
workbook.Save(destinationpath + filename + “.tiff”, imageSaveOptions);

for imageSaveOptions below initialization is done.
var imageSaveOptions = new Aspose.Cells.ImageSaveOptions(Aspose.Cells.SaveFormat.TIFF);

Could you please help to fix with this issue.



Since you are using some older version of the product, so we cannot evaluate your issue using older version. We can only recommend you to kindly try using newer Aspose.Cells for .NET version (v20.9). If you still find the issue, kindly provide your sample code (runnable) and template file (if any) to reproduce the issue, we will check it soon.

Hi Amjad,

Can you please confirm until which version it is supported by Aspose team.


As informed by @Amjad_Sahi here at Aspose, issues are tested with the latest version (i.e. 20.9 at the moment) only. As you are using an older version, therefore it is requested that you may test the issue using Aspose.Cells v 20.9 and if the issue is still there, share the runnable application and template file for our testing.