c# - FlexCel fails to open simple XLSX files -


a script have works fine xls files, throws errors when same files saved xlsx (very simple test files). using flexcel library, per description: flexcel studio .net framework 3.5 (with xlsx support).

the error occurs @ .open() method:

flexcelxlsadapterexception : error reading excel records. file invalid : flexcel : @ #c.#tl..ctor(stream , boolean ) @ flexcel.xlsadapter.xlsfile.#4rb(stream , boolean ) @ flexcel.xlsadapter.xlsfile.open(stream astream, tfileformats fileformat, char delimiter, int32 firstrow, int32 firstcol, columnimporttype[] columnformats, string[] dateformats, encoding fileencoding, boolean detectencodingfrombyteordermarks) @ flexcel.core.excelfile.open(stream astream, tfileformats fileformat, char delimiter, int32 firstrow, int32 firstcol, columnimporttype[] columnformats) @ flexcel.core.excelfile.open(stream astream) @ unhideofficecontent.unhideofficecontent.unhideexcelcontent(string filepath) @ unhideofficecontent.unhideofficecontent.execute() @ sdl.tms.messageprocessing.workerrequestprocessor.executemessage()

i tried loading stream or reading file, fails 100 % of time xlsx (but xls fine).

xlsfile xlsfile = new xlsfile(filepath); //using (stream xlsinputstream = file.openread(filepath)) //{ //    xlsfile.open(xlsinputstream,); //} 

please check library version. should 5.6.7.0

enter image description here


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -