On 01/07/11 14:26, Serge Noiraud wrote:
I didn't found this subject in the faq, so I ask it.
I create a writer document and I'd like to have the page numbering.
It works except for the first page.
If I use PageNumberOffset to a value>  1, it works correctly.
If I set this to one or I don't set it, I have a blank number on the first page.
Do I forget something ?
Here is my sample :

PageNumber = model.createInstance("com.sun.star.text.textfield.PageNumber")
PageNumber.NumberingType = ARABIC

You have to set the PageNumber field's SubType property to CURRENT.

For such general API questions, not specific to Python, the d...@api.openoffice.org list is a better place.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@udk.openoffice.org
For additional commands, e-mail: dev-h...@udk.openoffice.org

Reply via email to