473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ReportViewer not showing multiple pages.

I am using the Report Viewer, loading a report using a bar chart. I cannot seem to load the dataset (20 rows of data), into 20 seperate pages. The code seems to work, says 20 pages, but the report viewer does not show 1 out of 20 in it's toolbar.

I have read about pagination and setting pagebreaks, but I am not sure if I have done that correctly.

I read about PagedDataSource and used that, it almost worked, but I still only get 1 out of 1 pages.

the code below



protected void Page_Load(object sender, EventArgs e)
{
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = @"C:\Documents and Settings\c-jbaker\My Documents\Visual Studio 2005\Projects\Web_Test1\Web_Test1\Report1.rdlc";

ReportViewer1.Height = Unit.Parse("490px");
ReportViewer1.Width = Unit.Parse("100%");
DataTable dt = GetData();
//Hashtable ht = GetData3();

PagedDataSource pds = new PagedDataSource();
pds.AllowPaging = true;
pds.PageSize = 1;
pds.DataSource = dt.DefaultView;
pds.CurrentPageIndex = 0;

//ReportDataSource ds = new ReportDataSource("StingrayDataSet_StudentInfo", dt);
ReportDataSource ds = new ReportDataSource("StingrayDataSet_StudentInfo", pds);
//ReportViewer1.LocalReport.DataSources.Add(ds);
//
ReportViewer1.DataBind();
ReportViewer1.LocalReport.Refresh();

}
Sep 13 '06 #1
0 3889

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dgk | last post by:
I'm trying to learn the ReportViewer using non-database data so I've run through the simple demo showing how to use the reportviewer with business objects:...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
2
by: SimeonArgus | last post by:
I have a reportViewer object looking at a remote report. The good news is that I can press the PDF or Print button, and the report coems out just fine. I can also go to the report URL directly, and...
1
by: foocc | last post by:
Hi everyone I wanna ask how to display on ReportViewer items filtered through BindingSource.Filter? Or are there any other ways for me to filter records and display on ReportViewer? Or is this...
1
by: Jeje | last post by:
Him I know a lot of people suffer this issue in the past... but in my case it's really hard to reproduce the session timeout error. everything works fine, the user can see the reports etc... ...
1
by: ajaykhedekar | last post by:
I am Showing Mulitple MSRS Reports on Single ASP.Net WEB Page using Mulitple ReportViewer Controls. If User wants to Print the Reports, then user has to click Print button provided by ReportViewer...
0
by: Rick | last post by:
Hy Guys!!! I've made a report using reportviewer control in VS2005, it gives me 35 pages (A4 size), i want to display just one page or continuos pages without have to press next button, i want...
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
0
by: jankhana | last post by:
Hi all.... I'm using Microsoft ReportViewer(RDLC) for showing the reports. There are nearly six reports that i'm trying to create. First two are working propely i.e the reports get displayed but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.