OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Setting page margins

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
alo
Newbie
Newbie


Joined: 02 Sep 2003
Posts: 2

PostPosted: Tue Sep 02, 2003 6:08 am    Post subject: Setting page margins Reply with quote

Hi

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

Alo
Back to top
View user's profile Send private message
alo
Newbie
Newbie


Joined: 02 Sep 2003
Posts: 2

PostPosted: Thu Oct 02, 2003 7:06 am    Post subject: Re: Setting page margins Reply with quote

alo wrote:
Hi
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.


So it seems to be impossible? Unbelievable..

Alo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group