Asp.Net

Tuesday, 12 August 2014

Simple Crystal Report Code to Remember

using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

  protected void Page_Load(object sender, EventArgs e)
        {
            ReportDocument sa = new ReportDocument();
            string reportPath = Server.MapPath("/Reports/Practice.rpt");
            sa.Load(reportPath);
            CrystalReportViewer1.ReportSource = sa;
          
           

        }

No comments:

Post a Comment