如何更改Crystal报表文件中的数据源类型 [英] How to change the datasource type on a crystal reports file

查看:142
本文介绍了如何更改Crystal报表文件中的数据源类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在水晶报告文件上更改数据源类型,而无需重新生成整个报告?



我知道我可以去数据库/集数据源位置和更改一些数据源定义,如服务器名,登录名,密码,但是我需要做什么从ODBC(RDO)数据源类型更改为OLEDB?



尝试向报表添加一个新的数据源,并从该数据源添加所需的表,但是这样做时,我必须重命名它们,因为Crystal Reports似乎不能处理具有相同名称但不同数据源的表...


解决方案

设计师:你是通过设计师还是以编程方式谈论?



<转到设置数据源位置对话框,在下窗格中创建oledb连接,在顶部窗格中选择一个现有表,选择匹配的oledb表,点击更新按钮。对每个表重复。



程序化:不确定,但可能是一个痛苦。 :)


Is it possible to change the datasource type on a crystal reports file without having to rebuild the entire report?

I know that I can go to Database / Set Datasource Location and change some datasource definitions like servername, login, password, but what do I have to do to change from an ODBC (RDO) datasource type to OLEDB?

I already tried adding a new datasource to the report and add the required tables from that datasource but when doing so I have to rename them because Crystal Reports doesn't seems to be able to handle tables with the same name but different datasources...

解决方案

Are you talking about through the designer or programmatically?

Designer: go to "Set Datasource Location" dialog, create the oledb connection in the lower pane, select an existing table in the top pane, select the matching oledb table, hit the "update" button. Repeat for each table.

Programmatically: not sure but it's probably a pain. :)

这篇关于如何更改Crystal报表文件中的数据源类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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