We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem with property PageStartingNumber in odt document


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)

oDoc.AppendDocument(oDoc2, ImportFormatMode.UseDestinationStyles)

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.

Best regards,

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.
Best regards,

The issues you have found earlier (filed as WORDSNET-4915) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.