i created one sample report studentreport.rpt in asp.net 2005.
i want to create object for studentreport.rpt
but problem is studentreport is not avilable in intellisence and i added namespaces to my application also,still i am not getting report name
when i added a crystal report to my application references are not added...
plz any one help me
jeevan mummadiPosted Apr 4, 2009, 12:55 AM
thank you...
soniya.
Soniya WadhwaPosted Apr 3, 2009, 4:27 PM
Please be a little more descriptive about ur error. Like wch namespace u used or write the code in ..
Try this. hope it works !!
Dim oRpt As New ReportDocument
oRpt.Load(Server.MapPath("reports/rptLesson_Allocation.rpt"))
OR
CrystalDecisions.CrystalReports.Engine.ReportClass oRpt = new CrystalDecisions.CrystalReports.Engine.ReportClass();
string URL = Server.MapPath("MyReport.rpt");
oRpt.FileName = URL;
oRpt.Load();
OR
Select the report file (CrystalReport1.rpt) and in property window of the same
Set "Build Action" property to Embeded Resource