水晶报表的使用——解决登录失败的问题 Pull

protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;
        ReportDocument ReportDoc;
        
private void Page_Load(object sender, System.EventArgs e)
        
{
            
// 在此处放置用户代码以初始化页面
            ReportDoc  = new  ReportDocument();
            ReportDoc.Load(Server.MapPath(
"myReport.rpt"));
            
解决登录错误问题
            CrystalReportViewer1.ReportSource 
= ReportDoc;;

        }

原文地址:https://www.cnblogs.com/ghd258/p/261676.html