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. Load Report Failed

Load Report Failed

Scheduled Pinned Locked Moved ASP.NET
helpcsharpsysadminquestion
11 Posts 4 Posters 0 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.
  • E Offline
    E Offline
    Elizma
    wrote on last edited by
    #1

    Hi Guys and Gals. When I try to run a report created in CrystalReport (.NET 2005) on a button_Click event I get the following error: Load Report Failed. Here is my code: ReportDocument myReportDocument; myReportDocument = new ReportDocument(); myReportDocument.Load(Server.MapPath("Report.rpt")); myReportDocument.SetDataSource(ds); The report is in the same directory as my application. What else can possibly be the problem? Thanx Elizma

    S S A 3 Replies Last reply
    0
    • E Elizma

      Hi Guys and Gals. When I try to run a report created in CrystalReport (.NET 2005) on a button_Click event I get the following error: Load Report Failed. Here is my code: ReportDocument myReportDocument; myReportDocument = new ReportDocument(); myReportDocument.Load(Server.MapPath("Report.rpt")); myReportDocument.SetDataSource(ds); The report is in the same directory as my application. What else can possibly be the problem? Thanx Elizma

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      If you get a Load Report Failed when trying to run a Crystal Report, then this exception is thrown by the Crystal Reports engine when it cannot open the report file. Please mention the path correctly in your code. myReportDocument.Load(Server.MapPath(C:\MyApp\Report.rpt)); Hope this may be your Problem.

      Regards, Satips.:rose:

      E 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        If you get a Load Report Failed when trying to run a Crystal Report, then this exception is thrown by the Crystal Reports engine when it cannot open the report file. Please mention the path correctly in your code. myReportDocument.Load(Server.MapPath(C:\MyApp\Report.rpt)); Hope this may be your Problem.

        Regards, Satips.:rose:

        E Offline
        E Offline
        Elizma
        wrote on last edited by
        #3

        Hi, Thanx for reply, but if I change the code: myReportDocument.Load(Server.MapPath(@"C:\Inetpub\wwwroot\PlastPortal\Report.rpt")); I get the following error: 'C:\Inetpub\wwwroot\PlastPortal\Report.rpt' is not a valid virtual path. Regards, Elizma

        1 Reply Last reply
        0
        • E Elizma

          Hi Guys and Gals. When I try to run a report created in CrystalReport (.NET 2005) on a button_Click event I get the following error: Load Report Failed. Here is my code: ReportDocument myReportDocument; myReportDocument = new ReportDocument(); myReportDocument.Load(Server.MapPath("Report.rpt")); myReportDocument.SetDataSource(ds); The report is in the same directory as my application. What else can possibly be the problem? Thanx Elizma

          S Offline
          S Offline
          Sylvester george
          wrote on last edited by
          #4

          Tell me the structure of of directories. I mean In which directory the reports is? and From which directory you are calling the report? Give the relative path of the report in your calling place.

          Regards, Sylvester G sylvester_g_m@yahoo.com

          E 1 Reply Last reply
          0
          • S Sylvester george

            Tell me the structure of of directories. I mean In which directory the reports is? and From which directory you are calling the report? Give the relative path of the report in your calling place.

            Regards, Sylvester G sylvester_g_m@yahoo.com

            E Offline
            E Offline
            Elizma
            wrote on last edited by
            #5

            My Directory: C:\Inetpub\wwwroot\PlastPortal\Report.rpt myReportDocument.Load(Server.MapPath(@"C:\Inetpub\wwwroot\PlastPortal\Report.rpt")); Generates the following error: C:\Inetpub\wwwroot\PlastPortal\Report.rpt' is not a valid virtual path. Call the Report straight myReportDocument.Load(Server.MapPath("Report.rpt")); Generates the following Error: Load report failed. Dont know what else to do. Regards, Elizma

            S 1 Reply Last reply
            0
            • E Elizma

              My Directory: C:\Inetpub\wwwroot\PlastPortal\Report.rpt myReportDocument.Load(Server.MapPath(@"C:\Inetpub\wwwroot\PlastPortal\Report.rpt")); Generates the following error: C:\Inetpub\wwwroot\PlastPortal\Report.rpt' is not a valid virtual path. Call the Report straight myReportDocument.Load(Server.MapPath("Report.rpt")); Generates the following Error: Load report failed. Dont know what else to do. Regards, Elizma

              S Offline
              S Offline
              Sylvester george
              wrote on last edited by
              #6

              have you set virual directory for PlastPortal ? where is your aspx page ?

              Regards, Sylvester G sylvester_g_m@yahoo.com

              E 1 Reply Last reply
              0
              • S Sylvester george

                have you set virual directory for PlastPortal ? where is your aspx page ?

                Regards, Sylvester G sylvester_g_m@yahoo.com

                E Offline
                E Offline
                Elizma
                wrote on last edited by
                #7

                Yes I have set virtual directory for plastportal. My aspx page is also located within the same directory. Regards, Elizma

                S 1 Reply Last reply
                0
                • E Elizma

                  Yes I have set virtual directory for plastportal. My aspx page is also located within the same directory. Regards, Elizma

                  S Offline
                  S Offline
                  Sylvester george
                  wrote on last edited by
                  #8

                  please send me ur project to my email..i will look into it...what is the error you are getting??

                  Regards, Sylvester G sylvester_g_m@yahoo.com

                  1 Reply Last reply
                  0
                  • E Elizma

                    Hi Guys and Gals. When I try to run a report created in CrystalReport (.NET 2005) on a button_Click event I get the following error: Load Report Failed. Here is my code: ReportDocument myReportDocument; myReportDocument = new ReportDocument(); myReportDocument.Load(Server.MapPath("Report.rpt")); myReportDocument.SetDataSource(ds); The report is in the same directory as my application. What else can possibly be the problem? Thanx Elizma

                    A Offline
                    A Offline
                    ais07
                    wrote on last edited by
                    #9

                    Have you got the solution.If yes then please post that code here because I am facing Same error.Waiting for reply. Thanks

                    Life Is Beautifull

                    E 1 Reply Last reply
                    0
                    • A ais07

                      Have you got the solution.If yes then please post that code here because I am facing Same error.Waiting for reply. Thanks

                      Life Is Beautifull

                      E Offline
                      E Offline
                      Elizma
                      wrote on last edited by
                      #10

                      Hi We actually gone through quite a few problems with this. I will try to help you. I know one thing we had to do is to give write access to everyone to the C:\Temp folder. If you need more assistance, you can mail me at elizma_smith@hotmail.com I know how I struggled with this and was very gratefull for Sylvester to assist me. Kind Regards, Elizma

                      A 1 Reply Last reply
                      0
                      • E Elizma

                        Hi We actually gone through quite a few problems with this. I will try to help you. I know one thing we had to do is to give write access to everyone to the C:\Temp folder. If you need more assistance, you can mail me at elizma_smith@hotmail.com I know how I struggled with this and was very gratefull for Sylvester to assist me. Kind Regards, Elizma

                        A Offline
                        A Offline
                        ais07
                        wrote on last edited by
                        #11

                        Thanks For Reply Elizma, I will mail you all detail on your mail id. Thanks again.

                        Life Is Beautifull

                        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