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 [email protected] list is a better place.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to