那位朋友解决过呢?? 麻烦告诉一下好吗?
我装的是.NET Studio 2003 里面自带了Crystal Report 9 连同IIS的目录都是NTFS上面,设计了报表以后,调试时出现Crystal Report LogOnException,不知道如何解决。解决问题高分相送!
我装的是.NET Studio 2003 里面自带了Crystal Report 9 连同IIS的目录都是NTFS上面,设计了报表以后,调试时出现Crystal Report LogOnException,不知道如何解决。解决问题高分相送!
* pull模式,建立rpt文件,以及web页面,其中页面控件不需指定数据源.
* */
TableLogOnInfo logOnInfo = new TableLogOnInfo ();
ReportDocument oRpt = new ReportDocument();string path = Server.MapPath("CrystalReport/Order.rpt");
oRpt.Load (path);/* MS Server 2000数据库,其他作相应的改动 */
logOnInfo.ConnectionInfo.ServerName = "localhost";
logOnInfo.ConnectionInfo.UserID = "sa";
logOnInfo.ConnectionInfo.Password = "hxh";oRpt.Database.Tables[0].ApplyLogOnInfo(logOnInfo);CrystalReportViewer.ReportSource = oRpt; //建立.rpt文件与CryStalReportviewer文件之间的连接//The ReportDocument object will need to placed into Session so that
//on each postback, the viewer's ReportSource can be set to this instance
Session.Add("REPORT", oRpt);
是什么问题呢?? 各位帮帮忙吧