IT Community - Software Programming, Web Development and Technical Support

Implementing Crystal Report in Web Application

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-15-2007, 11:40 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Implementing Crystal Report in Web Application

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;
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 01:16 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0