I need a different first page in my word document. First page should have image in the header and a line across the page in the footer. I am using the following code but it does not show me the line on the first page. When I press Ctrl + Enter to create a new page it shows the line on the new page. If I change the code to show some image in the footer instead of a line it works alrite. What is going wrong here please help!!!
Thanks
PageSetup.DifferentFirstPageHeaderFooter = -1;
Sections[1].Headers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterFirstPage].Shapes.AddPicture(@"C:\Image\abc.jpg", ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
Sections[1].Footers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterFirstPage].Shapes.AddLine(35f, 500f, 400, 500f, ref missing);