mohaammed talha

mohaammed talha

  • NA
  • 445
  • 51.7k

Crystal Report Blank Page in asp.net c#

Aug 5 2021 10:49 AM

Crystal Report Blank without error in asp.net C#

<body>
    <script type="text/javascript" src="/crystalreportviewers13/js/crviewer/crv.js"></script> 
    <form id="form1" runat="server">
    <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
    </div>
    </form> 
</body>

C#:

protected void Page_Init(object sender, EventArgs e)
{
    ReportDocument cryRpt = new ReportDocument();
    cryRpt.Load(Server.MapPath("CrystalReport2.rpt"));
    CrystalReportViewer1.ReportSource = cryRpt;
}

 


Answers (6)