Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How can i display crystal report?
I have created one report (add new item->crystal report) now i want to display that.
How can i do this?
I have created one crystelreportviewer in one new form.But i don't know about crystelreportviewer.
What is the use of it? how can i connect my report with crystelreportviewer ?is it like a button?
if i click it it will redirect to report screen correct?

Please help...
Posted
Updated 20-May-13 21:47pm
v3
Comments
Am Gayathri 21-May-13 3:35am    
Dead line of this is day after tomorrow so guys plz help me...
Am Gayathri 21-May-13 3:42am    
please replay

you have taged so many languages...in which language you are going to do..
here is an example in VB.Net

http://vb.net-informations.com/crystal-report/vb.net_crystal_report_step_by_step.htm[^]
 
Share this answer
 
Hi...

Generate a Report using Crystal Reports in Visual Studio 2010[^]

see this link, may be useful to u.
thank u.
 
Share this answer
 
//Invoke stored procedure or any other method that returns the resultset e.g.
//GetReportData()

DataSet dsReport = GetReportData();

//create ReportDocument instance
ReportDocument reportDoc = new ReportDocument();

//set the report file name i.e your RPT file location on the server
reportDoc.Load(reportFileName);
//set the data source you retrieved from GetReportData() method
reportDoc.SetDataSource(dsNew);

//assign to crystal report viewer. crptViewer is the instance of CrystalReportViewer
//on aspx page or ascx user control

crptViewer.ReportSource = reportDoc;
crptViewer.RefreshReport();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900