水晶报告“登录失败...”尝试导航到下一页时出错 [英] Crystal Report "Logon failed..." Error when trying to navigation to next page
问题描述
我有一个基于Web的Crystal报表,它成功加载,但是当我尝试使用CrystalReportViewer顶部的工具栏导航到下一页时,我得到以下错误:
$详细信息:ADO错误代码:0x来源:Microsoft SQL Native客户端描述:用户'sa'的登录失败SQL状态:28000本机错误:文件C中的错误:\DOCUME〜1 \SOFTLITE\ASPNET\LOCALS〜1 \Temp\ClientReport {02A69EDD-9B03-4490-B3A2-5E5E5F5592D9} .rpt:无法连接:登录参数不正确。
$
感谢IA
我认为我已经解决了这个问题(至少在我的方案)。
最初我的代码看起来像:
if(!Page.IsPostBack)
{
LoadReport();
}
所以我删除了if(!Page.IsPostBack)部分,意味着它加载每个回发的报告数据(即点击CrystalReportViewer工具栏)它的工作。
I have a web-based Crystal Report that loads successfully, but when i try to navigate to the next page using the toolbar at the top of my CrystalReportViewer then i get the following error:
"Logon failed. Details: ADO Error Code: 0x Source: Microsoft SQL Native Client Description: Login failed for user 'sa'. SQL State: 28000 Native Error: Error in File C:\DOCUME~1\SOFTLITE\ASPNET\LOCALS~1\Temp\ClientReport {02A69EDD-9B03-4490-B3A2-5E5E5F5592D9}.rpt: Unable to connect: incorrect log on parameters."
Any ideas on how to overcome this problem are most welome.
Thanks IA
I think i have resolved this issue (in my scenario at least).
Originally my code looked like:
if (!Page.IsPostBack) { LoadReport(); }
so i dropped the "if (!Page.IsPostBack)" part meaning that it loads the report data on every postback (i.e. click on the CrystalReportViewer toolbar) an it's working.
这篇关于水晶报告“登录失败...”尝试导航到下一页时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!