Setting StiTable DockableTable to false causes error
Posted: Fri Feb 18, 2011 10:31 am
Hallo Support,
I wish to avoid my table taking up the whole width. The table is generated dynamically in code. I therefore set
table.DockableTable = false
This gives me the following error on running:
Argument of of range exception
bei System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value)
bei Stimulsoft.Report.Components.StiComponentsCollection.Insert(Int32 index, StiComponent component)
bei Stimulsoft.Report.Components.Table.StiTable.StartRenderTable(StiContainer parentContainer, Int32 index, Hashtable& newTableComponents)
bei Stimulsoft.Report.Components.Table.StiTable.StartRenderTableBand(Hashtable& newTableComponents)
bei Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
bei Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
bei Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
bei Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
bei Stimulsoft.Report.StiReport.Render(Boolean showProgress)
I know this is a known problem / bug. Is there a workaround for it? Someone wrote that you should use a panel and place the table on it. I tried this, the error went away but I had so many unwanted side effects with the panel (especially with page collation set) that I can't use this.
What can I do?
Thanks in advance.
John Kitching
I wish to avoid my table taking up the whole width. The table is generated dynamically in code. I therefore set
table.DockableTable = false
This gives me the following error on running:
Argument of of range exception
bei System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value)
bei Stimulsoft.Report.Components.StiComponentsCollection.Insert(Int32 index, StiComponent component)
bei Stimulsoft.Report.Components.Table.StiTable.StartRenderTable(StiContainer parentContainer, Int32 index, Hashtable& newTableComponents)
bei Stimulsoft.Report.Components.Table.StiTable.StartRenderTableBand(Hashtable& newTableComponents)
bei Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
bei Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
bei Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
bei Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
bei Stimulsoft.Report.StiReport.Render(Boolean showProgress)
I know this is a known problem / bug. Is there a workaround for it? Someone wrote that you should use a panel and place the table on it. I tried this, the error went away but I had so many unwanted side effects with the panel (especially with page collation set) that I can't use this.
What can I do?
Thanks in advance.
John Kitching