Dear All,

I am currently trying to change the page size of every page in my writer 
document, to a single size.
However my code only changes it for the first page. How to apply it to the 
whole document ?

Here is the code I use:

                controller=doc.getCurrentController()
                cursor=controller.getViewCursor()

                sPageStyleName = cursor.PageStyleName
                oPageStyles = doc.StyleFamilies.getByName("PageStyles")
                oStyle = oPageStyles.getByName(sPageStyleName)

                oStyle.Width = 21000
                oStyle.Height = 29700

Thanks for your precious help !

Laurent

Reply via email to