Crystal报告2008查看器错误 [英] Crystal reports 2008 viewer error

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

问题描述

您好。


我在oracle开发数据库中编写了一个存储过程,指向Crystal报告,添加了字段等,它工作得很好。


 


我将数据源更改为不同实例中的完全相同的过程,并且它在设计器中运行得很好。


 


然而,当我尝试使用CR .net查看器运行它时,我得到:


 


无法确定获取此报告数据所需的查询。文件Report1005中的错误{92649FF7-BD4F-4175-8D9C-A1165637C843} .rpt:无法从数据库中检索数据。


 


crystal reports 2008设计师(所有服务包)oracle 10g


 


我们将不胜感激。


 


Tony




解决方案

嗨Tony,


执行以下操作后,我的报告将用于CR.NET。 我们在Visual Studio 2008上使用Crystal Reports 2008和本机Oracle驱动程序。


启用选项“首次刷新验证”和‘验证首次刷新时的存储过程”。可以在"文件"菜单中找到这些选项报告选项。
这些选项是特定于报告的。报告期望所有数据都与它们创建的模式或数据库结构相匹配。以上选项通常可以解决较小的架构或结构差异。注意:这些选项取决于所使用的代码和应用程​​序的体系结构
,这些选项可能会在验证数据库后导致问题。如果这些选项可以解决您的问题,建议您将报告导出为rpt文件格式。然后在设计器中打开报告并关闭选项。


 


这是SAP的技术贡献者在以下链接中引用的:


http://forums.sdn.sap.com/servlet/JiveServlet/download/313-1536414-8435150-1339/Troubleshooting%20guide%20to%20database%20connectivity%20issues%20with%20Crystal%20Reports%20when%20used %20in%20Visual%20Studio%20.NET%20applications.doc


 



 


TVC


Hello.

I wrote a stored procedure in an oracle development database, pointed crystal reports to it, added fields,etc and it works just fine.

 

i changed the datasource to a the same exact procedure in an a different instance and it runs just fine in designer.

 

however, when i try to run it with the CR .net viewer, I get:

 

Cannot determine the queries necessary to get data for this report. Error in File Report1005 {92649FF7-BD4F-4175-8D9C-A1165637C843}.rpt: Failed to retrieve data from the database.

 

crystal reports 2008 designer (all service packs) oracle 10g

 

Any help would be appreciated.

 

Tony


解决方案

Hi Tony,

Doing the below got my reports to work on CR.NET.  We are using Crystal Reports 2008 with native Oracle driver on Visual Studio 2008.

Enable the options “Verify on First Refresh” and ‘Verify Stored Procedures on First Refresh”. These options can be found under the File menu | Report Options. These options are report specific. Reports expect all data to match the schema or database structure they were created with. The above options will often resolve minor schema or structure differences. Note: these depending on the code used and the architecture of your application, these options may cause issues once the database has been verified. It is recommended that if these options resolve your issue, you export the report to rpt file format. Then open the report in the designer and turn off the options.

 

This is referenced from SAP's technical contributor at the following link:

http://forums.sdn.sap.com/servlet/JiveServlet/download/313-1536414-8435150-1339/Troubleshooting%20guide%20to%20database%20connectivity%20issues%20with%20Crystal%20Reports%20when%20used%20in%20Visual%20Studio%20.NET%20applications.doc

 

I hope this can help you as this took me close to a month to research and diagnose.

 

tvc


这篇关于Crystal报告2008查看器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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