ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2017-03-10 15:09:31

RatHat
Member
Registered: 2017-03-10
Posts: 1

When loading cell with spaces exception raised.

I tried to open file that contains cell with spaces at the beginning (like "                       Hl - holidays").

That's what i received.

System.NullReferenceException: Object reference not set to an instance of an object.
   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.IO.ExcelFileFormatProvider.Load(IWorkbook workbook, Stream stream, Encoding encoding, Object arg)
   at unvell.ReoGrid.Workbook.Load(Stream stream, FileFormat fileFormat, Encoding encoding)
   at unvell.ReoGrid.Workbook.Load(String path, FileFormat fileFormat, Encoding encoding)
   at unvell.ReoGrid.ReoGridControl.Load(String path)

unvell.ReoGrid v.2.0.1.0

Offline

#2 2017-05-03 16:11:45

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: When loading cell with spaces exception raised.

Can you provide a test file that causes the problem happen? thanks.

Offline

Board footer

Powered by FluxBB