###老问题,关于水晶报表参数传递,

shengel 2007-06-12 05:27:18
//string ContId="";
string strSql = "select * from ci_templandmark t where tempmarkuuid='605cee80-9f2f-4562-a9b0-df46d19fcb5f' ";
// string strSql = "select * from ci_templandmark ";
DataTable dt=new DataTable();

string message;
dt = new BaseQueryServiceImpl().GetData(strSql,null,"","",out message);
//string tempmarkuuid = "605cee80-9f2f-4562-a9b0-df46d19fcb5f";

string rptPath= ConfigurationSettings.AppSettings["IMSPP_ReportPath"].ToString() + "\\test\\test.rpt";

ReportDocument report = new ReportDocument();
report.Load(rptPath);
report.SetDataSource(dt);
// ParameterFields fields = new ParameterFields();
// this.AddParameters("tempmarkuuid",tempmarkuuid,fields);
// rpt.ParameterFieldInfo = fields;


rpt.ReportSource = report;
...全文
212 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

4,816

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧