I have a problem inserting page number in header. I put PageStartingNumber property but always the numeration begins in 1.
This code works in docx but in odt don’t works.
This is the code:
oDoc = New Document(sPathDoc)
oDoc2 = New Document(sPathDoc2)
Dim odocbuilder = New DocumentBuilder(oDoc)
odocbuilder.CurrentSection.PageSetup.RestartPageNumbering = True
odocbuilder.CurrentSection.PageSetup.PageStartingNumber = 5
odocbuilder.InsertField(“PAGE”, " ")
odocbuilder.CurrentParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Center
I attach two documents for this example.
Thanks for all.
Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.