Hi Stimulsoft,
I have a number of data sources being rendered in heirarchical bands in 4 subreport pages.
If I do not include the sub-report pages in any subreport component, I can preview the data no problem. Each page is rendered separately and the data looks fine.
But I need to have the the subreport pages rendered into subreport components which are themselves in a databand.
So I have 2 data bands on the first page. Each data band contains 2 subreports, side-by-side.
The databands have no data source defined; just the Count Data = 1
The problem is when I try to preview I get the following error:
[General Info]
Application: Stimulsoft Reports.Net
Framework: v2.0.50727
Version: Version: 2009.2.422 from 22 June 2009
MachineName: xxxxxxxxx
OSVersion: Microsoft Windows NT 5.2.3790 Service Pack 2
UserName: xxxxxxx
----------------------------
[Exception Info]
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
StackTrace:
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Stimulsoft.Report.Components.StiPagesCollection.get_Item(Int32 index)
at Stimulsoft.Report.Engine.StiThreads.GetDestinationContainer()
at Stimulsoft.Report.Engine.StiThreads.CreateContainerEngine(String destinationName, StiReport report, StiEngine masterEngine, Int32 indexOfStartRenderedPages)
at Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page)
at Stimulsoft.Report.Engine.StiSubReportsHelper.RenderInternalSubReport(StiSubReport subReport)
at Stimulsoft.Report.Engine.StiSubReportsHelper.RenderSubReport(StiContainer containerOfSubReport, StiSubReport subReport)
at Stimulsoft.Report.Engine.StiSubReportV2Builder.InternalRender(StiComponent masterComp)
at Stimulsoft.Report.Components.StiComponent.InternalRender()
at Stimulsoft.Report.Engine.StiComponentV2Builder.Render(StiComponent masterComp)
at Stimulsoft.Report.Components.StiComponent.Render()
at Stimulsoft.Report.Engine.StiContainerV2Builder.InternalRender(StiComponent masterComp)
at Stimulsoft.Report.Engine.StiBandV2Builder.InternalRender(StiComponent masterComp)
at Stimulsoft.Report.Components.StiComponent.InternalRender()
at Stimulsoft.Report.Engine.StiEngine.InternalRenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiEngine.RenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderBand(StiDataBand masterDataBand, StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand)
at Stimulsoft.Report.Components.StiDataBand.RenderMaster()
at Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page)
at Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)
----------------------------
[Assemblies]
mscorlib, Version = 2.0.0.0
Stimulsoft.Base, Version = 2009.2.422.0
Stimulsoft.Report, Version = 2009.2.422.0
Stimulsoft.Report.Design, Version = 2009.2.422.0
System.Windows.Forms, Version = 2.0.0.0
-------------------------------
I get the same error if I put the subreport components directly onto the first page, or if I put the subreport components into databands.
Any help much appreciated
Thanks in advance
Subreport Index out of range
Subreport Index out of range
Hello,
Could you, please send us a sample project to support@stimulsoft.com . This will help to solve the issue faster.
Thank you.
Could you, please send us a sample project to support@stimulsoft.com . This will help to solve the issue faster.
Thank you.