Crystal reports demo

broken image
broken image

The Report object is retrieved from the Session and assigned to the ReportSource Property of the CrystalReportViewer Control when the page is refreshed or user navigates from one page to another. Now our Crystal Report Viewer is ready to display our report.įinally, store our Report in the Session using Session.Add(“report”, rpt ). All we need to do is to assign the report to the ReportSource Property of the Crystal Report Viewer Control ( CrystalReportViewer.ReportSource = rpt). SAP Crystal solutions allow users to connect and to analyse data contained in most data sources available in the market. The object rpt is our Report.Ĭrystal Report Viewer control’s job is to display the report. Assigning the Dataset ds to Report using the method SetDataSource. Note the rptCustomerList is the name of the Crystal Report, which we had created in step 3.

broken image

To do that Create an instance of Table Adapter CustomersTableAdapter and invoke the Fill Method to Fill the data.Ĭreate the rpt object, which is an instance of our rptCustomerList. Add CrystalReportViewer control & Bind it to the Reportįirst, We need to Fill the data table with the Customers data.Bind Dataset to the Crystal Report and Add Fields.Bind Report to the Crystal Report ViewerĬreating the Crystal Reports involves the following steps.Add a Crystal Viewer Control to Web Forms and Bind it to the Report Bind the Dataset to Crystal Report and Add Fields Create the ASP.NET Web Forms Application.

broken image