unvell / ReoGrid

Fast and powerful .NET spreadsheet component, support data format, freeze, outline, formula calculation, chart, script execution and etc. Compatible with Excel 2007 (.xlsx) format and working on .NET 3.5 (or client profile), WPF and Android platform.
https://reogrid.net
MIT License
1.32k stars 391 forks source link

Error while loading Excel file #163

Closed RahulKumarParihar closed 3 years ago

RahulKumarParihar commented 6 years ago

I am using grd.Load("Path", FileFormat.Excel2007, Encoding.UTF8) where grd is ReoGridControl. I am still getting NullReferenceException while loading few of the files.

at unvell.ReoGrid.IO.OpenXML.ExcelReader.AddRunIntoRichText(Document doc, RichText rt, Run r) at unvell.ReoGrid.IO.OpenXML.ExcelReader.CreateRichTextFromRuns(Document doc, IEnumerable`1 paragraphs) at unvell.ReoGrid.IO.OpenXML.ExcelReader.LoadWorksheet(IWorkbook rgWorkbook, Document doc, WorkbookSheet sheetIndex) at unvell.ReoGrid.IO.OpenXML.ExcelReader.ReadStream(IWorkbook rgWorkbook, Stream stream) at unvell.ReoGrid.Workbook.Load(Stream stream, FileFormat fileFormat, Encoding encoding) at unvell.ReoGrid.Workbook.Load(String path, FileFormat fileFormat, Encoding encoding) at Excel.LoadDataFromExcel(ReoGridControl grd, String filePath) in d:\ExcelLoadingTool\Loading.cs

jingwood commented 5 years ago

I Think this is problem has been fixed. Did you tried the latest source code?