asp.net2005中的web项目使用reportviewer控件连接rdlc报表,而数据集xsd是使用创建向导建立的,里面的select sql语句是这样:
select * from ddmb where dw=@dw and year_month=@year_month
可是这两个参数怎么传进来阿?还有怎么动态添加数据集,就是不使用创建向导建立,用代码建立?
select * from ddmb where dw=@dw and year_month=@year_month
可是这两个参数怎么传进来阿?还有怎么动态添加数据集,就是不使用创建向导建立,用代码建立?
解决方案 »
- Repeater 如何动态生成?
- 求助各位大侠,像凡客那样的任选四件衣服合并成一个大礼包怎么实现啊?
- 我想:自己写一个论坛程序 这种想法现实不?
- 共享一个自己重写的Serv-U(build 6.4.0.2版)帐好管理类。
- ★★★来做一个网站用统计系统吧★★★
- 如何根据身份证更新性别问题?
- ASP.NET MVC3 Linq to SQL的Group by问题请教!
- magicajax,实现不到无刷新
- 在服务器上为什么不能弹出网页
- 关于图像生成略缩图的问题,我可以拿我的代码做交换。
- web项目中用过RDLC的朋友进来看看.
- 有人用microsoft visio软件导出SQL Server数据库表字典的报表吗?
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("Reports/ContractQuery.rdlc");
ObjectDataSource ods = new ObjectDataSource("MDCLib", "QueryContract");
QueryStringParameter para = new QueryStringParameter("QueType", TypeCode.String,"reportid");
para.DefaultValue = "0";
ods.SelectParameters.Add(para);
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("mdc_ExpireContract_MDC_ExpireContract", ods));
ReportViewer1.LocalReport.ReportPath = Server.MapPath("Reports/ContractQuery.rdlc");
ObjectDataSource ods = new ObjectDataSource("MDCLib", "QueryContract");
QueryStringParameter para = new QueryStringParameter("QueType", TypeCode.String,"reportid");
para.DefaultValue = "0";
ods.SelectParameters.Add(para);
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("mdc_ExpireContract_MDC_ExpireContract", ods));