Hi guys,
I have the document after mail merging and I’d like to delete the first page. Could you tell me how to do it?
I attached template and output document
Alex
Thanks a lot Vijay.
Alex
Hi. I'm also trying to do this. Is there anyway to prevent the header being added? The original document doesn't have one, but the result has a header with one paragraph tab. Is it possible to maintain the original header or lack of header?
foreach (WSection section in document.Sections) { section.HeadersFooters.Header.ChildEntities.Clear(); section.HeadersFooters.FirstPageHeader.ChildEntities.Clear(); section.HeadersFooters.EvenHeader.ChildEntities.Clear(); section.HeadersFooters.OddHeader.ChildEntities.Clear(); } |