如何更改Crystal报表文件中的数据源类型 [英] How to change the datasource type on a crystal reports file
问题描述
可以在水晶报告文件上更改数据源类型,而无需重新生成整个报告?
我知道我可以去数据库/集数据源位置和更改一些数据源定义,如服务器名,登录名,密码,但是我需要做什么从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屋!