使用XtraGrid打印各种报表,要求能显示表头、条件,设置纸张类型等。
解决办法:
1
using System;
2
using System.Data;
3
using DevExpress.XtraPrintingLinks;
4
using DevExpress.XtraPrinting;
5
using System.Drawing;
6
using System.Drawing.Printing;
7
8
9
namespace Dhthx.Report
10
2
3
4
5
6
7
8
9
10
1
//使用方法
2
ReportCenter rc = new ReportCenter(gControl, lblTitle.Text, strDate);
3
rc.Preview();
2
3