使用c sharp加载Crystal报表 [英] Loading Crystal report using c sharp
本文介绍了使用c sharp加载Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
美好的一天所有
如何以c sharp的形式配置水晶报告,以便我不必更改文件所在的路径每次我将我的应用程序安装到另一台计算机时。我希望能够从我的应用程序的根文件夹加载报告。
提前感谢
问候
Good Day All
How do I configure crystal reports in c sharp in such a way that I don''t have to change the path of where the file is located each time I install my app into another computer. I want to be able to load the report from the root folder of my application.
thanks in advance
Regards
推荐答案
使用这种风格:
for AttachDbFilename in your connectionstring use this style :
AttachDbFilename=|DataDirectory|\DATABASENAME.mdf
您需要在添加crystalreport项目之前添加数据源。数据源的向导将使您适合Connectionstring!
you need add datasource before adding crystalreport item. wizard of the datasource will make for you fit Connectionstring!
这篇关于使用c sharp加载Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文