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

HELP! Problems with portrait -> landscape

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


Joined: 07 Apr 2008
Posts: 18

PostPosted: Mon Apr 07, 2008 9:02 pm    Post subject: HELP! Problems with portrait -> landscape Reply with quote

I was able to create a new Writer document with the following code:

dim oDesktop as Object
dim sURL as String
dim mNoArgs()
oDesktop = createUnoService("com.sun.star.frame.Desktop")
sURL = "private:factory/swriter"
oDesktop.loadComponentFromURL(sURL, "_blank",0,mNoArgs())

HOW do I convert this document from portrait to landscape? Recording a macro while making the change manually and then saving the resulting code is only enough to get to the Format -> Page -> Page dialog box.

I tried the com.sun.star.style.IsLandscape=True command to no avail.

I can't believe that OpenOffice Basic would not have a way to perform such a basic task. I surely must be overlooking something. Admittedly, it doesn't help that I don't know uno commands.
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