如何将数据源字符串传递给Crystal Reports [英] How to pass a datasource string to Crystal Reports

查看:90
本文介绍了如何将数据源字符串传递给Crystal Reports的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友.

我正在VB.Net中的一个项目上.我需要在项目中添加一些报告.但是在VB.Net中,我找不到任何将字符串(包含连接信息和数据源,数据库信息)传递给Crystal Reports的方法.

因此,我正在使用从文本文件(DB.txt)中拾取的字符串(StrInfo).之所以这样做,是因为我希望如果我需要更改数据库文件的路径,只需更改文本文件(DB.txt),然后字符串(StrInfo)就会从文本文件获取路径.因此,我想将字符串传递给Crystal报表.

请以某种方式告诉我.

Dear Friends.

I am working on a project in VB.Net. I need to add some reports in my project. But here in VB.Net, I did not found any way to pass a string (which contains Connection info and Data Source, Database info) to Crystal Reports.

So, I am using a string (StrInfo) which is picked up from a text File (DB.txt). I have done this because I want that If I need to change the Path of My Database File, I will just change the Text File (DB.txt) and The string (StrInfo) will get the path from text file. So Therefore, I want to pass the string to crystal reports.

Please tell me some way.

推荐答案

检查
在Visual Studio 2005中的运行时更改Crystal Report连接 [ http://social.msdn.microsoft.com/论坛/en-US/vscrystalreports/thread/7345fc6c-9749-42a3-b866-509c57f3cc35 [
Check
Change Crystal Report Connection at Runtime in Visual studio 2005[^]

http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7345fc6c-9749-42a3-b866-509c57f3cc35[^]


这篇关于如何将数据源字符串传递给Crystal Reports的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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