A report is being written with docx python, however when trying to generate different headers by implementing different sections, it does mantain the same unique header. It was also tried to create a FIRST_PAGE_HEADER but with no success.
Some orientation about how to create different headers for different pages would be very appreciated. Thanks in advance
This is the code that is working for creating one header, but not 2 or more for the different sections of the report
#codedoc= docx.Document()doc.add_section()section = doc.sections[0]header = section.headerparagraph = header.paragraphs[0]paragraph.text = "Text on the left\t"paragraph.style = doc.styles["Header"]
and this had been tryed from the documentation
new_section = document.add_section(WD_SECTION.ODD_PAGE)new_section.start_type