Skip to main content

Posts

Showing posts with the label SAP Crystal Report

ASP.NET MVC razor SAP Crystal report

Crete a new project: Add a aspx Master Page Create a new folder Reports and 2 sub folder crystal & crystalviewer Now add a web form page in crystalviewer  folder. Add the master page namespace in your web form page. MasterPageFile ="~/Views/Shared/ReportSite.Master" Replace your web form by this code < asp : Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat ="server">      </ asp : Content > Now go to design mode of your web form drag & drop the crystal report viewer in your web form. After that your page will be look look like this. Replace the code: < CR : CrystalReportViewer ID ="EmployeeList" runat ="server"   HasCrystalLogo ="False"     AutoDataBind ="True"   Height ="50px"   EnableParameterPrompt ="false" EnableDatabaseLogonPrompt ...

Unable to find the report in the manifest resources. Please build the project, and try again.

After following the process If you are using your report class for your report then don’t convert the report in content. Then this problem will not arise again. Right click on your solution or crystal report folder. Go to Open Folder In File Explorer. Select your report. You have to choose only the rpt file not the cs file of your report. Copy the report & save it Desktop or another place. Now Delete the crystal report, If you are using source controller also delete from it. Now add the report as existing file where you save the rpt file, It will automatically generate it’s cs file. Now build & run your solution.