Last post May 04, 2012 06:43 AM by meeraacademy
May 03, 2012 04:52 AM|cYpH3r x3r0|LINK
I want to add a dataset to my crystal report as a datasource, i am completely a beginner to reporting and only know ABC of it. so pleazse tell me how to add that dataset with a stored procedure to a crystal report.
May 03, 2012 06:54 AM|Bhavik Solucky|LINK
Here is step
i. open crystal report document
ii. Field Explorer-> Create new connection->Database file-> Select your Type Dataset
iii. now you have succesfully add database you can drag and drop fields in database and genrate report
run time need to fill type dataset and call report in crystal report viewer show it will show you report
here is code to open crystal report in webpage
ReportDocument rptDoc = new ReportDocument();
rptDoc.SetDataSource(DsPacklist);//DsPacklist is type dataset
CrystalReportViewer1.ReportSource = rptDoc;
May 03, 2012 07:19 AM|Nasir Hussain 786|LINK
May 04, 2012 06:43 AM|meeraacademy|LINK
Before, you start, you must have to knowledge about database connection with ASP.Net application.
First you have to Add New Crystal Report from Add New Item.
After adding Crystel Report you need to Add CrystalReportViewer for Displaying Crystal Report on your Webpage.
On the web page cod behind file you just add below code: -
DT = RAdapter.Select();
ReportDocument rpt = new ReportDocument();
string path = Server.MapPath("CrystalReport.rpt");
CrystalReportViewer1.ReportSource = rpt;
Need more Detail go to -