引用xsd文件的Crystal Report [英] Crystal Report referring to xsd file

查看:77
本文介绍了引用xsd文件的Crystal Report的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个水晶报表,但是我希望访问Web.Config文件中提到的连接字符串。另外,我想为我的水晶报表文件创建一个xsd文件以供参考。有人可以将我定向到教程或论坛来解决我的问题吗?

I am trying to create a crystal report, but I want the connection string that I have mentioned in the Web.Config file to be accessed. Also, I want to create an xsd file for my crystal report file to refer. Can someone please direct me to a tutorial or forum to solve my problem?

推荐答案

如果以下情况,您还可以以编程方式设置报告数据源您需要-如果需要,我可以提供详细信息

you can also programatically set the report data source if you need to - I can provide details if you require

在调用myReportDocument.Load( myreport.rpt)和myReportDocument.Refresh()之间(后者实际上从数据库中获取数据)可以添加对myReportDocument.SetDataSource(myDataSource)的调用,该调用采用数据源类型的对象,可以通过调用其构造函数并使用数据源的URL来创建该对象希望使用其用户名和密码。

between calling myReportDocument.Load("myreport.rpt") and myReportDocument.Refresh() (the latter of which actually gets the data from the database) it is possible to add a call to myReportDocument.SetDataSource(myDataSource) which takes an object of data source type, which you can create, with a call to its constructors, with the URL of the data source you wish to use, its username and password.

希望这会有所帮助

这篇关于引用xsd文件的Crystal Report的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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