水晶报表 登录失败。

来源:百度知道 编辑:UC知道 时间:2024/07/06 18:43:03
登录失败。详细资料: crdb_adoplus : 未将对象引用设置到对象的实例。文件 C:\WINDOWS\TEMP\rpt_zx {78C77FBC-A41C-4A0A-9F90-81F80514520A}.rpt 内出错:无法连接:错误的登录参数。
帮忙看下以下是原码C#:
Connection conn = Fun.Conn();
DataSet ds = conn.GetDataSet("select ID,XYBH from BZXY_DQ");
ReportDocument myReport = new ReportDocument();
string reportPath = Server.MapPath("rpt_zx.rpt");
myReport.Load(reportPath);
myReport.SetDataSource(ds);
CrystalReportViewer1.ReportSource = myReport;
在这执行完都没错,数据也是正确的,但页面就出现的错误"登录失败.."
没人遇到过吗?

遇到过,不过做了很久了,忘 了.

主要就是你做一个dataset,然后将dataset绑定在报表上。
其它你就在dataset上进行操作就行了。
还有,报表控件是要付费的,可以试用30次
报表有自己的属性,好像有登录设置。。。