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

Report Viewer creating duplicate pages

2 Answers 751 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 12 Jun 2013, 02:15 PM
I've created a report then linked it to an ASP.NET web application. Everything works fine with the viewer and I can view the report with no issue. The only problem is that in both the HTML Preview for my report and when I launch the ASP.NET app in a browser, it creates 295 pages with the same content on each page. I've attached a screen shot with the issue.

I have two tables and three charts and they're duplicated on each page. I applied sorts and filters to the first table which was initially extremely large to condense it. I'm not sure why it is creating all the duplicates. When I export to any file format the duplicates remain. 

Also a small side question, is there a property you can adjust for resizing the report viewer in your browser?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Squall
Top achievements
Rank 1
answered on 12 Jun 2013, 02:36 PM
It looks like you have set the Report.DataSource when you don't need to set it. When you set the Report.DataSource detail is created for every data row. Setting the table and charts.DataSource should be sufficient.
0
Jordan
Top achievements
Rank 1
answered on 12 Jun 2013, 02:48 PM
Yep you got it. Thanks for the heads up. 
Tags
General Discussions
Asked by
Jordan
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Jordan
Top achievements
Rank 1
Share this question
or