Hello
I have created crystal report in my asp.net application. It's working fine in design view and also in Preview. But when i open the page in browser it is not displaying report in viewer. Only i can see is crystalreportviewer header.
Can anyone please help me in this matter?
Code is as per below.
ReportDocument rptDocument = new ReportDocument();
rptDocument.Load(Server.MapPath("~/test.rpt"));
//rptDocument.FileName=Server.MapPath(@"~/rptExamPaper.rpt");
crvExam.ReportSource = rptDocument;
Web.Config(I read in the posts i have to add below code in web.config. which i have tried already)
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"/>
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<rptBuildProvider>
<add embedRptInResource="true"/>
</rptBuildProvider>
<!--<crystalReportViewer>
<add key="ResourceUri" value="~/crystalreportviewers13"/>
</crystalReportViewer>-->
</crystalReports>
</businessObjects>
Appreciate your help. I have attached image for reference.