Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. CrystalReport1 = new CrystalReport1();

CrystalReport1 = new CrystalReport1();

Scheduled Pinned Locked Moved ASP.NET
helpquestion
12 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jagadeesh Jupalli

    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

    H Offline
    H Offline
    Harini N K
    wrote on last edited by
    #2

    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

    J 1 Reply Last reply
    0
    • H Harini N K

      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

      J Offline
      J Offline
      Jagadeesh Jupalli
      wrote on last edited by
      #3

      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

      H 1 Reply Last reply
      0
      • J Jagadeesh Jupalli

        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

        H Offline
        H Offline
        Harini N K
        wrote on last edited by
        #4

        OK. Hope you also added reference ("Add Reference..") to your project. Check again

        Harini

        J 1 Reply Last reply
        0
        • H Harini N K

          OK. Hope you also added reference ("Add Reference..") to your project. Check again

          Harini

          J Offline
          J Offline
          Jagadeesh Jupalli
          wrote on last edited by
          #5

          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

          J 1 Reply Last reply
          0
          • J Jagadeesh Jupalli

            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

            J Offline
            J Offline
            Jagadeesh Jupalli
            wrote on last edited by
            #6

            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

            J H 2 Replies Last reply
            0
            • J Jagadeesh Jupalli

              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

              J Offline
              J Offline
              Jagadeesh Jupalli
              wrote on last edited by
              #7

              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

              1 Reply Last reply
              0
              • J Jagadeesh Jupalli

                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

                H Offline
                H Offline
                Harini N K
                wrote on last edited by
                #8

                Hi Added references should appear in the project explorer under 'References'. If not add again.

                Harini

                J 1 Reply Last reply
                0
                • H Harini N K

                  Hi Added references should appear in the project explorer under 'References'. If not add again.

                  Harini

                  J Offline
                  J Offline
                  Jagadeesh Jupalli
                  wrote on last edited by
                  #9

                  I tried and tried, it again and again. Still its not displaying. Plz help. Jagadeesh

                  H 1 Reply Last reply
                  0
                  • J Jagadeesh Jupalli

                    I tried and tried, it again and again. Still its not displaying. Plz help. Jagadeesh

                    H Offline
                    H Offline
                    Harini N K
                    wrote on last edited by
                    #10

                    Check this link[^]

                    Harini

                    J 1 Reply Last reply
                    0
                    • H Harini N K

                      Check this link[^]

                      Harini

                      J Offline
                      J Offline
                      Jagadeesh Jupalli
                      wrote on last edited by
                      #11

                      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

                      J 1 Reply Last reply
                      0
                      • J Jagadeesh Jupalli

                        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

                        J Offline
                        J Offline
                        Jagadeesh Jupalli
                        wrote on last edited by
                        #12

                        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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups