I am developing an application where I have used angular 6 for client side code and ASP.NET MVC 5 for server side. I am using Crystal Reports 13 for displaying reports but I am not using crystal viewer. I am converting crystal report in PDF and then showing it.

When I load my report on local server it is getting displayed but when I try to load/ display report on cloud server it is not showing report.

Are there any prerequisites I have to run or install on cloud server? How to load crystal report on cloud server?

Any help would be appreciated.

Thank you in advance

When I print report on local server, it gets printed. Code for local server :

reportDocument.Load("c:\\Report\\myreport.rpt");

But when I deploy my application on cloud server and try to print report, it does not get printed. I have also checked using postman but it gives result 204 no content.

I tried 2 solutions to load report on cloud

Solution 1:

reportDocument.Load(System.Web.HttpContext.Current.Server.MapPath(@"~/Report/myreport.rpt"));

Solution 2:

reportDocument.Load(System.Web.Hosting.HostingEnvironment.MapPath(@"~/Report/myreport.rpt"));

0 Answers