打开CrystalReport查看器时出错 [英] Error Opening CrystalReport viewer

查看:635
本文介绍了打开CrystalReport查看器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,我试图调试很多时间。

I have this problem which I am trying to debug for a lot of time.

设置如下:

i。该应用程序是使用VS2005,.net 2.0开发的Windows应用程序。

i. The application is a Windows application developed using VS2005, .net 2.0.

ii。我使用Cyrstal报告组件Crystal Report Viewer,并以相同的形式动态显示各种报告。

ii. I use the Cyrstal reports component Crystal Report Viewer and dynamically display various reports in the same form.

iii。 db是SQLSERVER Express 2005并位于不同的机器上。

iii. The db is SQLSERVER Express 2005 and situated on a different machine.

当我在db服务器上运行应用程序时,我能够查看报告。但是,当我在连接到上述dbServer的不同机器上运行应用程序时,我收到一个错误。 (我没有得到这个错误,我的dev设置)

When I run the application on the db server, I am able to view the report. However, when I run the application on a different machine which is connected to the above dbServer, I get an error. ( I dont get this error on my dev setup)

源:CrystakReprotViewer.CS:SendDBLogonForReport()详细信息:登录失败。
详细信息:ADO错误代码:0x
源:Microsoft OLE DB提供程序SQL Server
描述:[DBNETLIB] [ConnectionOpen(Invalid Instance())]连接无效。
SQL状态:08001
本机错误:
文件C中的错误:\DOCUME〜1 \admin\LOCALS〜1 \Temp \ActionPoints {52820D22-199C-4D46- A76B-70A55D9F54D5} .rpt:
无法连接:登录参数不正确。在CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTableLocation(ISCRTable CurTable,ISCRTable NewTable)
在CrystalDecisions.CrystalReports.Engine.Table.set_Location(字符串值)
在Trivalve.UI.Client.Reports.CrystalViewer。 CrystalReportViewer.SetDBLogonForReport(ConnectionInfo connectionInfo,ReportDocument reportDocument)in D:\Ramjee\Work\Projects\Trivalve\Trivalve\src\tfssetup\2008\Trivalve_2008\Trivalve\Reports\CrystalViewer\\ \\CrystalReportViewer.cs:line 127 rptcontrollers.dll SetTableLocation

Source: CrystakReprotViewer.CS:SendDBLogonForReport() Details:Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: [DBNETLIB][ConnectionOpen (Invalid Instance()).]Invalid connection. SQL State: 08001 Native Error: Error in File C:\DOCUME~1\admin\LOCALS~1\Temp\ActionPoints {52820D22-199C-4D46-A76B-70A55D9F54D5}.rpt: Unable to connect: incorrect log on parameters. at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTableLocation(ISCRTable CurTable, ISCRTable NewTable) at CrystalDecisions.CrystalReports.Engine.Table.set_Location(String value) at Trivalve.UI.Client.Reports.CrystalViewer.CrystalReportViewer.SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument) in D:\Ramjee\Work\Projects\Trivalve\Trivalve\src\tfssetup\2008\Trivalve_2008\Trivalve\Reports\CrystalViewer\CrystalReportViewer.cs:line 127 rptcontrollers.dll SetTableLocation

有关详细信息,请参阅帮助和支持中心,网址为 http://go.microsoft.com/fwlink/events.asp

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

谢谢,
Ramjee

Thanks, Ramjee

推荐答案

使用 datasource = servername或ip address\instance name ,端口号

默认端口号为 1433 1434

我的问题已解决。发布供其他人使用。

My problem was solved with this. Posting for the use of others.

这篇关于打开CrystalReport查看器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆