This is a discussion on Implementing Crystal Report in Web Application within the C# Programming forums, part of the Software Development category; Implementing Crystal Report in Asp.Net2.0 1. Create a Dataset to get the data from the DB. By clicking ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Implementing Crystal Report in Asp.Net2.0 1. Create a Dataset to get the data from the DB. By clicking the “Add New Item” in the “Project” menu you can add a Dataset. Dataset is used to fill the data’s. 2. Add a Crystal Report Item to the project by clicking “Add New Item” in the “Project” menu. 3. Then we have to set a “crystalReportViewer” in form to load the report that created earlier. And also need to set the report source of this “crystalReportViewer” component, which is falling in the properties panel or set the report source by using the code like the following. // code to get data from the DB DBConnection DBConn = new DBConnection(); OleDbDataAdapter myDataAdapter = DBConn.getDataFromDB(); // use the created Dataset to and fill it with data getting // from the DB by using the DataAdapter DataSet dataReport = new DataSet(); myDataAdapter.Fill(dataReport,"myPersonalInfoTable "); // create a new report from the created CrystalReport myDataReport myDataReport = new myDataReport(); // set the data source of the report myDataReport.SetDataSource(dataReport); // set the report source of the created “crystalReportViewer” // component to the created report crystalReportViewer1.ReportSource = myDataReport; |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Implementing soap using PHP | Falcon | PHP Programming | 58 | 05-02-2008 03:54 AM |
| Crystal Report Issues | Sundaram | ASP and ASP.NET Programming | 0 | 03-10-2008 02:53 AM |
| Crystal Report Viewer | S.Vinothkumar | Ruby | 3 | 10-16-2007 05:35 AM |
| Export to Excel option is not working in Crystal Report with service pack 2 | tsureshk | ASP and ASP.NET Programming | 1 | 10-06-2007 03:57 AM |
| Crystal Report in Vb.net | ewriter | VB.NET Programming | 1 | 04-24-2007 08:01 AM |