LoadFromFile: InvalidCastException: Unable to cast object of

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

LoadFromFile: InvalidCastException: Unable to cast object of

Postby arvaris » Wed Mar 26, 2008 10:03 pm

I'm getting this error when loading an .xls file:

[InvalidCastException: Unable to cast object of type 'br' to type 'kh'.]
Spire.Xls.Core.Spreadsheet.XlsPageSetupBase.ParseRecord(BiffRecordRaw record) +741
Spire.Xls.Core.Spreadsheet.XlsPageSetup.ParseRecord(BiffRecordRaw record) +253
Spire.Xls.Core.Spreadsheet.XlsPageSetupBase.Parse(IList data, Int32 position) +217
Spire.Xls.Core.Spreadsheet.XlsWorksheet.ExtractPageSetup(Int32 iStartIndex) +132
Spire.Xls.Core.Spreadsheet.XlsWorksheet.ParseData() +302
Spire.Xls.Core.Spreadsheet.XlsWorksheetBase.Parse() +30
Spire.Xls.Core.Spreadsheet.XlsWorkbook.g() +101
Spire.Xls.Core.Spreadsheet.XlsWorkbook.b(gb A_0, ExcelParseOptions A_1, Int32 A_2, Int32 A_3, Hashtable A_4, IDecryptor A_5) +72
Spire.Xls.Core.Spreadsheet.XlsWorkbook.a(gb A_0, ExcelParseOptions A_1, String A_2) +2795
Spire.Xls.Core.Spreadsheet.XlsWorkbook.a(ah A_0, ExcelParseOptions A_1, String A_2) +407
Spire.Xls.Core.Spreadsheet.XlsWorkbook..ctor(d0 A_0, Object A_1, String A_2, ExcelParseOptions A_3, Boolean A_4, String A_5) +215
gn.a(Object A_0, String A_1, ExcelParseOptions A_2, Boolean A_3, String A_4) +47
cr.b(String A_0, ExcelParseOptions A_1) +33
Spire.Xls.Workbook.LoadFromFile(String fileName, Boolean preserveMode) +56

Any help would be GREATLY appreciated. Thanks.
arvaris
 
Posts: 1
Joined: Wed Mar 26, 2008 9:58 pm

Postby Flash » Fri Mar 28, 2008 3:03 am

Sorry for inconvenience.
Could you send your xls file to us, It will help slove the problem.
User avatar
Flash
 
Posts: 56
Joined: Thu Jun 29, 2006 2:34 pm

Postby Flash » Fri Mar 28, 2008 10:03 am

Hello,

The bug has been fixed, Please download latest version.
http://www.e-iceblue.com/xls/xlsdownload.htm
User avatar
Flash
 
Posts: 56
Joined: Thu Jun 29, 2006 2:34 pm


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 1 guest

cron