[Writer] Get page format settings

Keyboard macros or custom scripts

[Writer] Get page format settings

Postby Mr.Dandy » Thu Jun 13, 2019 12:43 pm

Hello all,

In Format / Page menu, we have this list:
Capture.PNG

Where can I find this setting?
OpenOffice 4.1.3 - Windows 7
User avatar
Mr.Dandy
 
Posts: 291
Joined: Tue Dec 11, 2012 4:22 pm

Re: [Writer] Get page format settings

Postby RoryOF » Thu Jun 13, 2019 12:47 pm

I'm not sure what your question is: note that in /File /Print you need to press the Properties button and in the dialog that opens select that same paper size to tell the printer to use that paper size (and of course, you need to insert such size of paper into the printer).
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Writer] Get page format settings

Postby Lupp » Thu Jun 13, 2019 7:36 pm

Did you read (e.g.)
5.10.1. Setting the paper size
of "Useful Macro Information" by Andrew Pitonyak?

(I don't know how to manipulate the Orientation. From my experiences: It is not adapted automatically. In the dialog it acts as a tool to exchange the With/Height values. However, if you cange the Size by macro, the dialogue remembers the Orientation as it was before.)

Amendment:
The Orientation is saved in the Boolean attribute .IsLandscape .
Last edited by Lupp on Thu Jun 13, 2019 8:49 pm, edited 1 time in total.
On Windows 10: LibreOffice 6.2 and older versions, PortableOpenOffice 4.1.5 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2475
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: [Writer] Get page format settings

Postby RoryOF » Thu Jun 13, 2019 8:31 pm

This thread wil give you a macro that may get you on your way if you wish to set page formats by macro
https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=82036
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest