My Crystal Report always appears blank

1

I use Visual Studio 2012 Ultimate and the latest version of Crystal Reports.

But every time I run the page, even the localhost report is blank. By viewing the source code of the page I can see all the information about it. It just does not throw this information in the form of a report.

Any ideas?

Follow the code as requested:

Aspx

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>


      <form id="form1" runat="server">
         <div>
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" />
         </div>
      </form>

ASPX.CS

protected void Page_Load(object sender, EventArgs e)       
{            
    ReportDocument rptrel = new ReportDocument();
    rptrel.Load(Server.MapPath("Rel_ComissaoInadCanc.rpt"));    
    CrystalReportViewer1.ReportSource = rptrel;
    CrystalReportViewer1.DataBind();
}
    
asked by anonymous 30.06.2015 / 16:28

1 answer

0

I solved this problem by throwing the aspnet_client folder into the directory where IIS reads the project.

Within this folder is the crystalreportsviewers that loads the report. In my case, that's what made the screen come out blank.

    
08.08.2016 / 21:19