NotImplementedException when setting IRange.Text

Here's the code:

something like this loops in a for loop:

------
sheet.Range(currRow, currCol).Text = "company - costcenter (dep)"
sheet.Range(currRow, currCol).CellStyle.Font.Bold = True
sheet.Range(currRow, currCol).AutofitColumns()
------

This is the stack trace:

[NotImplementedException: The method or operation is not implemented.]
Syncfusion.XlsIO.Implementation.Collections.RowStorage.EnsureSize(Int32 iRequiredSize, Int32 iBlockSize) +63
Syncfusion.XlsIO.Implementation.Collections.RowStorage.SetOrdinaryRecord(Int32 iColumnIndex, ICellPositionFormat cell, Int32 iBlockSize) +525
Syncfusion.XlsIO.Implementation.Collections.RowStorage.SetRecord(Int32 iColumnIndex, ICellPositionFormat cell, Int32 iBlockSize) +64
Syncfusion.XlsIO.Implementation.Collections.RecordTable.set_Item(Int32 rowIndex, Int32 colIndex, Object value) +245
Syncfusion.XlsIO.Implementation.Collections.CellRecordCollection.set_Item(Int32 iRow, Int32 iColumn, ICellPositionFormat value) +76
Syncfusion.XlsIO.Implementation.Collections.CellRecordCollection.SetCellRecord(Int32 iRow, Int32 iColumn, ICellPositionFormat cell) +37
Syncfusion.XlsIO.Implementation.WorksheetImpl.SetLabelSSTIndex(Int64 cellIndex, Int32 iSSTIndex) +459
Syncfusion.XlsIO.Implementation.RangeRichTextString.EndUpdate() +142
Syncfusion.XlsIO.Implementation.RangeImpl.set_Text(String value) +291






1 Reply

HA haneefm Syncfusion Team October 25, 2007 04:14 PM UTC

Hi Bert,

I am not sure of what might be causing this strange behavior without a working sample. I have tested this issue in a simple application with Essentail XlsIO V.5.2. But i was not able to reproduce the issue. I have attached my test sample.

http://websamples.syncfusion.com/samples/Grid.Windows/38539/main.htm

Is it possible for you to upload us a minimal sample or modify the attached sample to reproduce the issue here? This will help us to analyse the issue further.

Thanks for using Syncfusion product.

Best regards,
Haneef

Loader.
Up arrow icon