报表出“登录失败”错误。
登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: CrystalDecisions.CrystalReports.Engine.LogOnException: 登录失败。
源错误:
行 87: diskOpts.DiskFileName = "c:\\outfile.xls";
行 88: exportOpts.DestinationOptions = diskOpts;
行 89: Report.Export ();
行 90:
行 91: }
源文件: d:\website\dataserver\report\report1.aspx.cs 行: 89
堆栈跟踪:
[LogOnException: 登录失败。]
.K(String
, EngineExceptionErrorID ) +546
.F(Int16 , Int32 ) +487
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +468
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() +114
CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() +74
dataserver.report.Report1.Button1_Click(Object sender, EventArgs e) in d:\website\dataserver\report\report1.aspx.cs:89
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263