CrystalReport1 = new CrystalReport1();
-
Hi, I made a simple report CrystalReport1.rpt which was added to my project (Add New Item => Crystal Report). Now I want to use this report in my project, When i tried to write code in the code behind of the webform "CrystalReport1" code snippet did not appear. Then I typed the name of the report in the code: CrystalReport1 = new CrystalReport1(); But I get this compile-error: The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?) What is wrong? Plz help. Jagadeesh
-
Hi, I made a simple report CrystalReport1.rpt which was added to my project (Add New Item => Crystal Report). Now I want to use this report in my project, When i tried to write code in the code behind of the webform "CrystalReport1" code snippet did not appear. Then I typed the name of the report in the code: CrystalReport1 = new CrystalReport1(); But I get this compile-error: The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?) What is wrong? Plz help. Jagadeesh
Hi
Jagadeesh Jupalli wrote:
The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?)
Yes, Add the foll. references to your project.
CrystalDecisions.CrystalReports.Engine CrystalDecisions.ReportSource CrystalDecisions.Shared CrystalDecisions.Web
and in your code behind file, import all the above references. Hope this helps.Harini
-
Hi
Jagadeesh Jupalli wrote:
The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?)
Yes, Add the foll. references to your project.
CrystalDecisions.CrystalReports.Engine CrystalDecisions.ReportSource CrystalDecisions.Shared CrystalDecisions.Web
and in your code behind file, import all the above references. Hope this helps.Harini
Yes I have added it in my code behind but its not working... I kept like this... using CrystalDecisions; using CrystalDecisions.Shared; using CrystalDecisions.ReportSource; using CrystalDecisions.CrystalReports.Engine; Plz Help. Jagadeesh
-
Yes I have added it in my code behind but its not working... I kept like this... using CrystalDecisions; using CrystalDecisions.Shared; using CrystalDecisions.ReportSource; using CrystalDecisions.CrystalReports.Engine; Plz Help. Jagadeesh
OK. Hope you also added reference ("Add Reference..") to your project. Check again
Harini
-
OK. Hope you also added reference ("Add Reference..") to your project. Check again
Harini
Just now I added it by right clicking on my project solution explorer and select "Add reference" and selected * CrystalDecisions.CrystalReports.Engine.dll * CrystalDecisions.ReportSource.dll * CrystalDecisions.Shared.dll and clicked ok. In the code behind i added these classes. Even now i am unable to get the Report name in the codebehind snippet. Plz let me know your thoughts. Jagadeesh
-
Just now I added it by right clicking on my project solution explorer and select "Add reference" and selected * CrystalDecisions.CrystalReports.Engine.dll * CrystalDecisions.ReportSource.dll * CrystalDecisions.Shared.dll and clicked ok. In the code behind i added these classes. Even now i am unable to get the Report name in the codebehind snippet. Plz let me know your thoughts. Jagadeesh
Can you tell me how can i confirm that these references were added to my project. I couldn't see any difference even after adding these references. :doh: Jagadeesh
-
Can you tell me how can i confirm that these references were added to my project. I couldn't see any difference even after adding these references. :doh: Jagadeesh
For an update, Just now I googled and found that We must get the "References node" after added the references. But I am not getting it. :( Plz let me know how to get it. Jagadeesh
-
Can you tell me how can i confirm that these references were added to my project. I couldn't see any difference even after adding these references. :doh: Jagadeesh
Hi Added references should appear in the project explorer under 'References'. If not add again.
Harini
-
Hi Added references should appear in the project explorer under 'References'. If not add again.
Harini
I tried and tried, it again and again. Still its not displaying. Plz help. Jagadeesh
-
I tried and tried, it again and again. Still its not displaying. Plz help. Jagadeesh
Harini
-
Harini
Harini, I'm following these steps correctly. When i binded a simple report using CrystalReportViewer control (with out using any dataset), It worked fine. (There is no code in the codebehind except the CrystalReportViewer bind property) It showed the values correctly. When I tryed the same with the dataset in the code behind i am unable to get the reportname in the snippet. CrystalReport1 crReportDocument = new CrystalReport1(); --> i'm not getting this report name here. I am a fresher i don't know much about this. Is it compulsory to get the references node in the solution explorer to get the report name in the code behind. Plz let me know your thoughts. Jagadeesh
-
Harini, I'm following these steps correctly. When i binded a simple report using CrystalReportViewer control (with out using any dataset), It worked fine. (There is no code in the codebehind except the CrystalReportViewer bind property) It showed the values correctly. When I tryed the same with the dataset in the code behind i am unable to get the reportname in the snippet. CrystalReport1 crReportDocument = new CrystalReport1(); --> i'm not getting this report name here. I am a fresher i don't know much about this. Is it compulsory to get the references node in the solution explorer to get the report name in the code behind. Plz let me know your thoughts. Jagadeesh
Harini, I am able to view them (Resource node and its content) in my windows applications but Unable to view them in Web applications. -Jagadeesh