hi,
a.Sections(0).PageSetup.DifferentOddAndEvenPages is not working when i have 4 or more section , the other section have a different header then the first one
for my case i have a document , in the attach , contains 3 sections and i just want to delete the header in the second section.
the code you give me , you create a new worddocument , is not the same.
the code i use it, but is not working !!
Dim a As WordDocument = New WordDocument(chemin + "\testword\Template123.doc", FormatType.Doc)
For i As Integer = 0 To a.Sections(1).HeadersFooters.EvenHeader.ChildEntities.Count - 1
a.Sections(1).HeadersFooters.Header.ChildEntities.RemoveAt(0)
Next
For i As Integer = 0 To a.Sections(1).HeadersFooters.FirstPageHeader.ChildEntities.Count - 1
a.Sections(1).HeadersFooters.Header.ChildEntities.RemoveAt(0)
Next
For i As Integer = 0 To a.Sections(1).HeadersFooters.Header.ChildEntities.Count - 1
a.Sections(1).HeadersFooters.Header.ChildEntities.RemoveAt(0)
Next
For i As Integer = 0 To a.Sections(1).HeadersFooters.OddHeader.ChildEntities.Count - 1
a.Sections(1).HeadersFooters.Header.ChildEntities.RemoveAt(0)
Next
thanks for help
Attachment:
sample_b9ea9141.zip