Posted 14 September 2017, 9:35 am EST
[activereports_archive]Hi I’m trying my hand at building a page report (as opposed to the section reports I have worked on to date). Data from the report is coming from an old access database. The report is set as fixed page layout At the moment as I test it, it returns one record with the following error:
[vb]Exception details:
GrapeCity.ActiveReports.ReportException: An unexpected error occured. Additional information: ‘Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index’ —> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at #ZwA.#qYj.get_Item(Int32 index)
at #sxA.#7lr.#BGr(Int32 contentPosition)
at #sxA.#7lr.#CGr()
at #sxA.#7lr.#Qvf()
at #sxA.#7lr.Run(LayoutContext context, #e4e spaceManager)
at #sxA.#l3e.#Rvf(LayoutContext context, #e4e spaceManager)
at #sxA.#83e.#Rvf(LayoutContext context, #e4e masterSpaceManager)
at #sxA.#93e.Run(LayoutContext context, #e4e spaceManager)
at #sxA.#93e.#Xyf(LayoutContext context)
at #sxA.#93e.#Dxf(#S2e masterTree)
at #sxA.#93e.BuildLayout()
at #sxA.#rX.BuildLayout(LayoutInfo layoutInfo)
at #GPr.#RLf.#NNf(IReport report, TargetDeviceCapabilities targetDevice, LayoutNotificationCallback callback)
at GrapeCity.ActiveReports.Export.Image.Page.ImageRenderingExtension.Render(IReport report, StreamProvider streams, NameValueCollection settings)
at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh)
— End of inner exception stack trace —
at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh)
at GrapeCity.ActiveReports.Viewer.Win.Rdlx.RdlReport.c__DisplayClassf.b__b()
at GrapeCity.ActiveReports.Viewer.Win.AsyncLoader.c__DisplayClass7.#cAz(Object , DoWorkEventArgs )
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)[/vb]
I do have some script in the report in the form of a function to format an address properly (taking as parameters fields from the report). It is possible that some of the parameters being passed into the function may be NULL, could this be the cause of this error, or should I be looking elsewhere?
Regards
Dom[/activereports_archive]