1,prprogram.cs
List<ReportType> reportTypeList = new List<ReportType>();
PageHeadersOrFooters pageHeaders = new PageHeadersOrFooters();
pageHeaders.Add(new ReportText("页眉右") { Aligment = 1 });
pageHeaders.ExcludeFirstPage = true;
ReportType.PageHeaders = pageHeaders;
PageHeadersOrFooters pageFooters = new PageHeadersOrFooters();
pageFooters.Add(new ReportText("页脚左") { Aligment = -1 });
pageFooters.HavePageNum = true;
ReportType.PageFooters = pageFooters;
ReportText reportText = new ReportText(true, "Report"