From a2579f767910fb086de5ea7f105fdfe473ed8fc6 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Sun, 28 Apr 2024 17:52:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReportTemplates/CustomerOrgReportManager.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Shentun.Peis.Domain/ReportTemplates/CustomerOrgReportManager.cs b/src/Shentun.Peis.Domain/ReportTemplates/CustomerOrgReportManager.cs index b799fee..c93a051 100644 --- a/src/Shentun.Peis.Domain/ReportTemplates/CustomerOrgReportManager.cs +++ b/src/Shentun.Peis.Domain/ReportTemplates/CustomerOrgReportManager.cs @@ -1132,13 +1132,16 @@ namespace Shentun.Peis.ReportTemplates List rows = p1Titletable.Rows; Row row0 = rows[0]; - row0.Height = 50f; + row0.Height = 65f; row0.Cells[0].Width = 50f; - Xceed.Document.NET.Image logo = document.AddImage(DirectoryName + @"\CustomerOrgTemplate\logo.jpg"); + Xceed.Document.NET.Image logo = document.AddImage(DirectoryName + @"\CustomerOrgTemplate\logo_template.jpg"); Formatting p1TitleFormatting = new Formatting(); p1TitleFormatting.FontFamily = new Xceed.Document.NET.Font("宋体"); p1TitleFormatting.FontColor = Color.FromArgb(0, 128, 0); - row0.Cells[0].Paragraphs[0].AppendPicture(logo.CreatePicture()); + var pic = logo.CreatePicture(); + pic.Width = 65f; + pic.Height = 65f; + row0.Cells[0].Paragraphs[0].AppendPicture(pic); row0.Cells[0].VerticalAlignment = VerticalAlignment.Center; row0.Cells[1].Width = document.PageWidth - document.MarginLeft - document.MarginRight - 30f; row0.Cells[1].Paragraphs[0].Append("团体体检健康检查统计报告", p1TitleFormatting).FontSize(22).Alignment = Alignment.center;