Load Report Failed
-
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
-
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
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:
-
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:
-
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
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
-
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
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
-
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
have you set virual directory for PlastPortal ? where is your aspx page ?
Regards, Sylvester G sylvester_g_m@yahoo.com
-
have you set virual directory for PlastPortal ? where is your aspx page ?
Regards, Sylvester G sylvester_g_m@yahoo.com
-
Yes I have set virtual directory for plastportal. My aspx page is also located within the same directory. Regards, Elizma
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
-
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
-
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
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
-
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