Dear Johan,
Thanks for your understanding.
Once any update on the performance-improvement, we will inform you immediately.
If you have other issues, please also tell us.
Have a nice day!
Best Regards,
Amy
E-iceblue support team
private static void InsertFooter(Section section)
{
HeaderFooter footer = section.HeadersFooters.Footer;
List<TextRange> textRanges = new List<TextRange>();
Table t = footer.AddTable(false);
TableRow tr1 = t.AddRow(3);
TableRow tr2 = t.AddRow(3);
float f = (section.PageSetup.ClientWidth)/3;
tr1.Cells[0].Width = f;
tr1.Cells[1].Width = f;
tr1.Cells[2].Width = f;
tr2.Cells[0].Width = f;
tr2.Cells[1].Width = f;
tr2.Cells[2].Width = f;
tr1.RowFormat.Borders.BorderType = BorderStyle.None;
tr2.RowFormat.Borders.Left.BorderType = BorderStyle.None;
tr2.RowFormat.Borders.Right.BorderType = BorderStyle.None;
tr2.RowFormat.Borders.Bottom.BorderType = BorderStyle.None;
tr2.RowFormat.Borders.Top.BorderType = BorderStyle.Single;
//insert datetime in footer
Paragraph footerParagraphLeft = tr2.Cells[0].AddParagraph();
footerParagraphLeft.Format.HorizontalAlignment = HorizontalAlignment.Left;
textRanges.Add(footerParagraphLeft.AppendText(DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss")));
//insert pagenumber in footer
Paragraph footerParagraphRight = tr2.Cells[2].AddParagraph();
textRanges.Add(footerParagraphRight.AppendField("page number", FieldType.FieldPage));
textRanges.Add(footerParagraphRight.AppendText(" van "));
textRanges.Add(footerParagraphRight.AppendField("number of pages", FieldType.FieldNumPages));
footerParagraphRight.Format.HorizontalAlignment = HorizontalAlignment.Right;
foreach (TextRange range in textRanges)
{
range.CharacterFormat.Font = footerFont;
}
Paragraph footerCenter = tr2.Cells[1].AddParagraph();
Image image = Image.FromFile(@"..\..\xlmap.png");
DocPicture footerPicture = footerCenter.AppendPicture(image);
footerPicture.TextWrappingStyle = TextWrappingStyle.InFrontOfText;
footerPicture.HorizontalPosition = (section.PageSetup.ClientWidth/2) - (image.Width/2);
footerPicture.VerticalOrigin = VerticalOrigin.Paragraph;
footerPicture.VerticalAlignment = ShapeVerticalAlignment.Top;
footerPicture.WidthScale = 50;
footerPicture.HeightScale = 50;
}
amy.zhao wrote:Dear Johan,
Thanks for your understanding.
Once any update on the performance-improvement, we will inform you immediately.
If you have other issues, please also tell us.
Have a nice day!
Best Regards,
Amy
E-iceblue support team