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

Free Support Forum - aspose.com

Input sequence has wrong format


I am currently using evaluation version of Aspose.Total (last version). Trying to execute next part of code

Xdoc = new Aspose.Cells.Workbook();

MemoryStream xmlDoc = new MemoryStream();
Xdoc.Save(xmlDoc, Aspose.Cells.FileFormatType.AsposePdf);

I receive the error "Input sequence has wrong format". I am sorry for possible not exact translation, but I receive the error in german.

This code used to work perfectly with all possible xls files but one. Could you please take a glance at this file in attach and let me know what is wrong with it?


Thanks for providing the template excel file.

Yes, we found the issue after an initial test, we will figure it out soon.

Thank you.

Hi Amjad,

I attached one more file to the first post “File.xls”. When I am trying to execute this code:

Xdoc = new Aspose.Cells.Workbook();

I receive next error message:
“Destination array is not long enough to copy all the items in the collection. Check array index and length.”

As you can see the file itself is not big at all, this project used to convert much bigger files. So would you please take a look at it and help me fixing the problem.

Thank you in advance.


Please try this fix .

We have fixed the two bugs.

By the way , which tool do you use to create File.xls?


thank you for the fix, i will reply as soon as I will be able to fully test it.

The “File.xls” was automatically generated with EMS manager out of some result of sql-query.