RDLC 报表 距阵空白区域显示表头并打印出来

来源:互联网 发布:2014年消费数据统计 编辑:程序博客网 时间:2024/04/30 01:44

RDLC 报表 距阵空白区域显示表头并打印出来

需要在空白区域加个距形再往距形里添加文本框

 

 

单个变量可以用参数实现

= Format(Parameters!Date.Value,"yyyy年") &Parameters!HotelTitle.Value & "" & Format(Parameters!Date.Value,"MM月") & vbCrLf  & "销售房型"

 

 

ReportViewer1.Visible = true;
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.AsyncRendering = false;
ReportViewer1.Width = 800;
ReportViewer1.ShowPageNavigationControls = false;
ReportViewer1.ShowRefreshButton = false;

ReportViewer1.Height = 370 + (48 * table.Rows.Count);       
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report/SalesReport.rdlc");
ReportViewer1.LocalReport.DataSources.Clear();

 

ReportParameter param = new ReportParameter("HotelTitle", ComboBoxHo.SelectedItem.Text);
ReportParameter param2 = new ReportParameter("Date", StartDate);

ReportParameter[] p = { param, param2 };
ReportViewer1.LocalReport.SetParameters(p);

 

ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("SalesDS", table));          
ReportViewer1.LocalReport.Refresh();