Hello, Forum:
I am a newbie to Crystal Report. I am trying to show report by using Crystal Report on ASP.NET in the Visual Studio .NET
The context is:
1. Created a CrystalReport.rpt
2. Add CrystalReportViewer1 control to a .aspx at design time
3. In this .aspx file, in the method of page_load(),
after preparing dataset (ds), and the following two statement
rp.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rp;
This works well, it can show records of the first page by the report viewer.
But the table of dataset has many records, when I click nextpage button on the toolbar, CrystalReportViewer does not show records in the nextpage, but it always showes a webpage with CrystalReportViewer control icon.
I have tried to add a button in the page, then add a statement to the button's click event handler :
CrystalReportViewer1.shownextpage();
It also does not work.
I must miss some setting of the CrystalReportViewer1,
Can some one help me? Thank a lot!
Yao
I am a newbie to Crystal Report. I am trying to show report by using Crystal Report on ASP.NET in the Visual Studio .NET
The context is:
1. Created a CrystalReport.rpt
2. Add CrystalReportViewer1 control to a .aspx at design time
3. In this .aspx file, in the method of page_load(),
after preparing dataset (ds), and the following two statement
rp.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rp;
This works well, it can show records of the first page by the report viewer.
But the table of dataset has many records, when I click nextpage button on the toolbar, CrystalReportViewer does not show records in the nextpage, but it always showes a webpage with CrystalReportViewer control icon.
I have tried to add a button in the page, then add a statement to the button's click event handler :
CrystalReportViewer1.shownextpage();
It also does not work.
I must miss some setting of the CrystalReportViewer1,
Can some one help me? Thank a lot!
Yao