Joined: 02 Sep 2003
|Posted: Tue Sep 02, 2003 6:08 am Post subject: Setting page margins
I cannot find the way to set page margins to (for example) 1 cm in Writer. In Staroffice it was as simple as command ActiveWindow.LeftMargin = "1.0cm" and so on.
When I record macro and set the margins through Format->Page dialog, the macro shows me the dialog too. If I record and change margin with mouse, I get the commandline like:
rem dispatcher.executeDispatch(document, ".uno:SetLongLeftRightMargin", "", 0, Array())
When remove 'rem' and run, the OOo crashes. Is the only solution to make a new Style, put it in default template and apply this through macro, or is there some better way?
OOo 1.1 RC1 and RC3