我只是想询问如何删除报告下面的额外空格?我的目标是打印超市里的收据。报告的高度必须是基于内容的动态。我希望有人可以帮助我。 :)
将数据设置为rdlc报告 public void print_now(BarcodeData data) {
this.reportViewer2.LocalReport.DataSources.Clear();
this.reportViewer2.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("Materials", data.Materials));
this.reportViewer2.LocalReport.SetParameters(
new ReportParameter[] {
new ReportParameter("Barcode","*"+data.Transaction.Barcode+"*"),
new ReportParameter("Requestor",data.Transaction.Requestor),
new ReportParameter("DateRequested",data.Transaction.DateCreated),
new ReportParameter("Sewing",data.Transaction.Sewing),
new ReportParameter("Employeeid",data.Transaction.EmployeeId),
new ReportParameter("IpAddress",data.Transaction.IpAddress),
}
);
this.reportViewer2.RefreshReport();
//AutoPrint();
}
和我的Report.rdlc