private void DrawReportFooterSummary(PagingSetup pagingSetup, PdfDocument document, ExportNote exportNote) { ReportUtils.DrawParagraphLine(pagingSetup, document, pagingSetup.RegularFont, XParagraphAlignment.Left, pagingSetup.RegularLineHeight, string.Format("Mục đích sử dụng: {0}", exportNote.ExportReason)); ReportUtils.DrawParagraphLine(pagingSetup, document, pagingSetup.RegularFont, XParagraphAlignment.Left, pagingSetup.RegularLineHeight, string.Format("Ngày xuất mẫu: {0}", exportNote.ExportDateDisplay)); ReportUtils.DrawParagraphLine(pagingSetup, document, pagingSetup.RegularFont, XParagraphAlignment.Left, pagingSetup.RegularLineHeight, string.Format("Ngày in: {0}", DateTime.Now.ToString(CommonConstant.DateTimeFormatDisplay))); }
private void DrawReportHeaderSummary(PagingSetup pagingSetup, PdfDocument document, ExportNote exportNote) { var options = new XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.Always); ReportUtils.DrawParagraphLine(pagingSetup, document, new XFont("Tahoma", 12, XFontStyle.Bold, options), XParagraphAlignment.Center, pagingSetup.RegularLineHeight, string.Format("Mã xuất: {0}", exportNote.ExportId)); ReportUtils.IncreaseLineHeight(pagingSetup, document, pagingSetup.RegularLineHeight); ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(), XParagraphAlignment.Left, pagingSetup.RegularLineHeight, "Danh sách mẫu xuất: "); }