水晶报表在处理过程中出现“登录失败”,如何?

chirho 2003-04-15 03:27:13
登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: CrystalDecisions.CrystalReports.Engine.LogOnException: 登录失败。
...全文
122 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
chirho 2003-04-15
  • 打赏
  • 举报
回复
正是 glboy(星毅)所提供的帖子上的问题,多谢!
chirho 2003-04-15
  • 打赏
  • 举报
回复
code如下,大家看看吧,我才开始学用这个
public class CryRep : System.Web.UI.Page
{
protected MySourceLibrary.CachedCrystalReport1 cachedCrystalReport11;
protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;

private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
}


#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
DataBind();
}

/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.cachedCrystalReport11 = new MySourceLibrary.CachedCrystalReport1();
//
// cachedCrystalReport11
//
this.cachedCrystalReport11.CacheTimeOut = System.TimeSpan.Parse("02:10:00");
this.cachedCrystalReport11.IsCacheable = true;
this.cachedCrystalReport11.ShareDBLogonInfo = false;
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
glboy 2003-04-15
  • 打赏
  • 举报
回复
请参考:
http://expert.csdn.net/Expert/topic/1475/1475083.xml?temp=.5302851
tcchong 2003-04-15
  • 打赏
  • 举报
回复
把你的代码贴出来吧,很多情况下是程序的问题
qingren 2003-04-15
  • 打赏
  • 举报
回复
用try ...catch...

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧