Hi, I too was having the same problem. All I did to solve this was:
// Set the DifferentFirstPageHeaderFooter. document.DefaultPageSetup.DifferentFirstPageHeaderFooter = true;
I then change the following line: From: var myImage = section.Headers.Primary.AddImage("ImageLocation"); To: var myImage = section.Headers.FirstPage.AddImage("ImageLocation");
// E.g. Add the image to the document's first page. var myImage = section.Headers.FirstPage.AddImage("ImageLocation"); myImage.Height = "2.5cm"; myImage.LockAspectRatio = true; myImage.RelativeVertical = RelativeVertical.Line; myImage.RelativeHorizontal = RelativeHorizontal.Margin; myImage.Top = ShapePosition.Top; myImage.Left = ShapePosition.Right; myImage.WrapFormat.Style = WrapStyle.Through;
_________________ John Hodkinson Software Engineer Thap Ltd.
|