|
|
|
@ -821,18 +821,18 @@ namespace Shentun.Peis.ReportTemplates |
|
|
|
Header header = template.Headers.Odd; |
|
|
|
// Insert Paragraph in header
|
|
|
|
Paragraph paragraph = header.InsertParagraph(); |
|
|
|
Xceed.Document.NET.Image logo = template.AddImage(DirectoryName + @"\CustomerOrgTemplate\header.jpg"); |
|
|
|
Xceed.Document.NET.Image logo = template.AddImage(DirectoryName + @"\CustomerOrgTemplate\logo.jpg"); |
|
|
|
var pic = logo.CreatePicture(); |
|
|
|
pic.Width = 41.59f; |
|
|
|
pic.Height = 30.3f; |
|
|
|
pic.Width = 40f; |
|
|
|
pic.Height = 40f; |
|
|
|
paragraph.AppendPicture(pic); |
|
|
|
paragraph.Append("\t\t\t\t健康体检中心"); |
|
|
|
|
|
|
|
template.AddFooters(); |
|
|
|
Footer footer = template.Footers.Odd; |
|
|
|
// Insert Paragraph in header
|
|
|
|
Paragraph paragraph1 = footer.InsertParagraph(); |
|
|
|
paragraph1.Append("File Format Develoer Guide"); |
|
|
|
//Paragraph paragraph1 = footer.InsertParagraph();
|
|
|
|
//paragraph1.Append("File Format Develoer Guide");
|
|
|
|
#region 封面
|
|
|
|
|
|
|
|
template.ReplaceText(new StringReplaceTextOptions |
|
|
|
@ -1138,7 +1138,10 @@ namespace Shentun.Peis.ReportTemplates |
|
|
|
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; |
|
|
|
|