This is a migrated thread and some comments may be shown as answers.

Index must be within the bounds of the list. Parameter name: index.

2 Answers 686 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 14 Feb 2020, 08:28 AM

Ticket :1453373

Report shows all records in Visual Studio when I Preview it in the preview page but when running the winform application from the IDE (and as a stand alone app) the viewer stops when record count ~> 220 records showing the above error. When I capture the error event and display said error in a messagebox the first page is displayed. On it I can see that pages are calculated (as my first page displays page 1 of 75) so I can conclude that the records are definitely getting retrieved, just not displayed. I say that the record count is ~> 220 because when I narrow the parameters to display < 220 records the report is generated fine: adding 10 more records to the report causes the error.
As I said, the report previews perfectly.

I call the report using

Dim TR As MaserNET.ReportViewerForm1 = New MaserNET.ReportViewerForm1
TR.ReportName = "Maserrep.DDRegister, Maserrep, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null"
TR.ShowDialog()

 

and the viewer shows the report using

 

Dim typeReportSource = New Telerik.Reporting.TypeReportSource()
Dim connectionStringHandler = New ReportConnectionStringManager(GlobalConnection.ConnectionString)
typeReportSource.TypeName = ReportName
Dim reportSource = connectionStringHandler.UpdateReportSource(typeReportSource) Me.ReportViewer1.ReportSource = reportSource Me.ReportViewer1.RefreshReport()

What am I missing????

2 Answers, 1 is accepted

Sort by
0
n/a
Top achievements
Rank 1
answered on 17 Feb 2020, 01:40 AM
Anyone???
0
Katia
Telerik team
answered on 19 Feb 2020, 07:36 AM

Hi,

Based on our discussion in the support ticket, the issue seems to be connected to the fact that the report viewer and the Reporting engine are used from a dll which is not a known issue. We would need to investigate a sample that reproduces the problem in order to suggest what might be the cause.

 

Regards,
Katia
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
n/a
Top achievements
Rank 1
Answers by
n/a
Top achievements
Rank 1
Katia
Telerik team
Share this question
or