I'm using Telerik Reporting 2010 Q3, with the Silverlight ReportViewer.
I've created a static function for adding a column to a report table using this Sample Project as a starting point. Everything is working great except for export. If I generate a different report, and then generate one of the two reports with dynamic columns I get an ArgumentOutOfRangeException followed by a NullReferenceException when I export. If I re-Generate the report with the dynamic columns then the export works correctly.
Here is what's printed to the output window:
*** ProcessReport #0 STARTED ***
*** Report Processing STARTED ***
*** Table::ProcessItem STARTED ***
*** TableBuilder::AddColumns STARTED ***
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
*** TableBuilder::AddColumns DONE in 00:00:00.0248971 ***
*** Table::ProcessItem DONE in 00:00:00.0295418 ***
An exception has occurred while processing '' item:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Telerik.Reporting.Processing.Data.DataMember.<GetMembers>d__12.MoveNext()
at Telerik.Reporting.Processing.TableBuilder.WalkHierarchy(Boolean isColumnGroup, IList`1 hierarchy, DataMember parentData, Single distance, AddBodyLineCallback addBodyLineCallback, AddPresentationCallback addPresentationCallback, Int32 startIndex, Boolean parentCollapse, Single& collapsePresentationCorrection, Single& mergePresentationCorrection, Int32& mergePresentation)
at Telerik.Reporting.Processing.TableBuilder.Fill(Table table)
at Telerik.Reporting.Processing.Table.ProcessItem()
at Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data)
Any ideas?
I've created a static function for adding a column to a report table using this Sample Project as a starting point. Everything is working great except for export. If I generate a different report, and then generate one of the two reports with dynamic columns I get an ArgumentOutOfRangeException followed by a NullReferenceException when I export. If I re-Generate the report with the dynamic columns then the export works correctly.
Here is what's printed to the output window:
*** ProcessReport #0 STARTED ***
*** Report Processing STARTED ***
*** Table::ProcessItem STARTED ***
*** TableBuilder::AddColumns STARTED ***
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
*** TableBuilder::AddColumns DONE in 00:00:00.0248971 ***
*** Table::ProcessItem DONE in 00:00:00.0295418 ***
An exception has occurred while processing '' item:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Telerik.Reporting.Processing.Data.DataMember.<GetMembers>d__12.MoveNext()
at Telerik.Reporting.Processing.TableBuilder.WalkHierarchy(Boolean isColumnGroup, IList`1 hierarchy, DataMember parentData, Single distance, AddBodyLineCallback addBodyLineCallback, AddPresentationCallback addPresentationCallback, Int32 startIndex, Boolean parentCollapse, Single& collapsePresentationCorrection, Single& mergePresentationCorrection, Int32& mergePresentation)
at Telerik.Reporting.Processing.TableBuilder.Fill(Table table)
at Telerik.Reporting.Processing.Table.ProcessItem()
at Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data)