标签:ble tab text private 声明 分享 style report local
在VS中报表的实现还是比較easy的。第一次机房收费时,我们用了三方工具来制作报表,相对俩说是比較麻烦的,我们来看一下,VS中是怎样制作报表的。
下一步:
下一步:
之后一直下一步,选择select 语句进行显示
下一步,为报表加入相应的字段
<span style="font-size:18px;"><strong>Private Sub cmdQuery_Click(sender As Object, e As EventArgs) Handles cmdQuery.Click
Dim dateinfo As New Entity.DayWeekEntity
Dim dayweekfac As New Facade.DayWeekFac
Dim table As DataTable
dateinfo.StartDate = Format(DTPstart.Value, "yyyy-MM-dd")
dateinfo.StopDate = Format(DTPstop.Value, "yyyy-MM-dd")
'table为依据查询条件返回的datatable
table = dayweekfac.GetWeekInfo(dateinfo)
Dim rptDataSource As New ReportDataSource '声明数据源对象
rptDataSource.Name = "DataSet1" '设置报表数据集名称
rptDataSource.Value = table '设置数据源实例
ReportViewer1.LocalReport.ReportEmbeddedResource = "WindowsApplication1.CheckDayWeek.rdlc"
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(rptDataSource)
Me.ReportViewer1.RefreshReport()
End Sub</strong></span>这仅仅是一个简单的实现功能,原来看过一个师哥的博客,报表设计的特别美丽,合作的 时候要加油了!
标签:ble tab text private 声明 分享 style report local
原文地址:http://www.cnblogs.com/mfmdaoyou/p/7135776.html