摘要:
改变数据源:reportViewer1.LocalReport.Refresh();应该改为this.reportViewer1.RefreshReport();1.建立一个winform文件,一个rdlc报表文件2.在解决方案资源管理器内,对项目点击鼠标右键,添加新建项内的数据集3.选择新建的数据集点击工具集,拖动一个TableAdapter控件进入,添加SQL代码(添加的代码最好和手动绑定的SQL代码列一样)4.在rdlc文件内拖入一个表控件,把数据集内的字段拖入表内5.在winform内添加一个ReportViewer和一个button控件6.在ReportViewer控件上选择创建的r 阅读全文
posted @ 2011-08-03 16:26
94cool
阅读(401)
评论(0)
推荐(0)
摘要:
1:没有主键的情形: Select identity(int,1,1) as iid,* into #tmp from TableName Select * from #tmp Drop table #tmp2:有主键的情形: Select (Select sum(1) from TableName where KeyField <= a.KeyField) as iid,* from TableName a order by iid 阅读全文
posted @ 2011-08-03 11:45
94cool
阅读(242)
评论(0)
推荐(0)
摘要:
1:select * from Sale where format(SJoinTime,'yyyy-MM-dd')>=#2011-07-03# and format(SJoinTime,'yyyy-MM-dd')<=#2011-08-03#2:select * from Sale where SJoinTime>=#2011-07-03 00:00:00# and format(SJoinTime,'yyyy-MM-dd')<#2011-08-04 00:00:00#第一条语句要对SJoinTime进行格式话,如果数据量大 阅读全文
posted @ 2011-08-03 09:23
94cool
阅读(150)
评论(0)
推荐(0)
浙公网安备 33010602011771号