jhsu General User

Joined: 07 Apr 2008 Posts: 18
|
Posted: Mon Apr 07, 2008 9:02 pm Post subject: HELP! Problems with portrait -> landscape |
|
|
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. |
|