Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons on toolbar does not work

Status
Not open for further replies.

yaohuang

Programmer
Joined
Jun 10, 2005
Messages
3
Location
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top