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

Free Support Forum - aspose.com

Warning message opening .xlsx document converted from .xls


Hi,
I 'am evaluating Aspose.Cells in dot.net application.
I'am saving a .xls document in .xlsx format and, when i try to open the document I got this message:
"Excel found unreadable content in 'Cartel11.xlsx'.Do you want to recover the contents of this workbook?
if you trust the source of this workbook,click Yes."

This is my code

Workbook wb = new Workbook();

wb.Open("cartel1.xls");

wb.Save("Cartel11.xlsx", FileFormatType.Excel2007Xlsx);

Attached the .xlsx the converted document with the warning message on open.

Any idea?

Thanks in advanced.
Gianluca Brugnatti.

Hi,

Could you post your input file “cartel1.xls” here, we will check your issue soon.

Thank you.

Hi,

thank for the answer.

Attached the input document.

Regards

Hi,

Please try the attached latest version/fix v4.8.2.2. I have tested using your code and input file, it generates xlsx file fine.

I have also attached the generated xlsx file using your code here.

Thank you.

Hi,

I've used 8.4.2.2, but I receive the same error.

Any Idea?

Hi,



Do you use the windows application or web project to response the
generated file opening onto client browser. It works absolutely fine
here. Please make sure that you are using my attached version in your project.





By the way could you open my attached xlsx file if you got the same error message?



If you still could not evaluate, kindly provide us your environment details, OS, .NET framework, 32-bit/64-bit etc.


Thank you.


Hi,

I'm using windows application and I'm sure that I use your attached version of Aspose.Cells.dll.

Yes, I can open your attached .xlsx file with no error and no warning.

Now my environment details

OS= Windows 2003 Sp2 Italian.

Framework installed:

2.0 sp2 + Italian language pack sp2

3.0 sp2 + Italian language pack sp2

3.5 sp1 + Italian language pack sp1

I think it may be a problem in my system, but....wath is it?

I have no other error when using Excel, but only when I use Aspose.Cell to convert xls to xlsx.

N.B.

if I use a compiled version of my testing program in an other Windows Seven Machine, it work fine.

Now, I' ve add these row to my code:

Workbook wb = new Workbook();

Workbook wb2 = new Workbook();

wb.Open("cartel1.xls");

wb2.Copy(wb);

wb2.Save("Cartel12.xlsx");

wb.Save("Cartel11.xlsx");

Well, Cartel11.xlsx work fine, but when I open Cartel12.xlsx I got the error.

Attached Cartel11.xlsx and Cartel12.xlsx.

Regards.

Hi,

Well, using your new code with your template file i.e…, “cartel1.xls”, I generated “Cartel11.xlsx” and “Cartel12.xlsx” and both are fine. Both files opens in MS Excel 2007 fine without any error/issue.

My Test Environment:

OS= Windows Xp Professionl.

Framework installed:

2.0 + US (Default) language settings



Thank you.

Hi,


After further investigation, we have found the error you mentioned. It is about the “Windows Region and Language Settings” and since you are using Italian language settings too. An Environment uses other char such as‘.’ instead of ‘:’as the time separator that will cause this type of error. We have fixed this issue and provide you a fix soon.

Your issue has been logged into our issue tracking system with an issue id: CELLSNET-13864.


Thank you.

Hi,

Please try the attached version, we have fixed your mentioned issue.

Thank you.

The issues you have found earlier (filed as 13864) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.