Hello all,
In Format / Page menu, we have this list:
Where can I find this setting?
[Solved] [Writer] Get page format settings
[Solved] [Writer] Get page format settings
Last edited by Mr.Dandy on Fri Jul 26, 2019 9:22 am, edited 1 time in total.
OpenOffice 4.1.12 - Windows 10
Re: [Writer] Get page format settings
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.15 on Xubuntu 22.04.4 LTS
Re: [Writer] Get page format settings
Did you read (e.g.)
(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 .
of "Useful Macro Information" by Andrew Pitonyak?5.10.1. Setting the paper size
(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 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: [Writer] Get page format settings
This thread wil give you a macro that may get you on your way if you wish to set page formats by macro
viewtopic.php?f=20&t=82036
viewtopic.php?f=20&t=82036
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: [Writer] Get page format settings
Thanks all for your replies
I try to get the real name (letter, legal, A4, A5...).
This thread show that we have only a format with height and width values.RoryOF wrote:This thread wil give you a macro that may get you on your way if you wish to set page formats by macro
viewtopic.php?f=20&t=82036
I try to get the real name (letter, legal, A4, A5...).
OpenOffice 4.1.12 - Windows 10
Re: [Writer] Get page format settings
Andrew Pitonyak, in OpenOffice Macros Explained, listing 317, gives code to retrieve the names of the Paper types.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: [Writer] Get page format settings
Thanks for the hint
Enum PaperFormat do the job: https://www.openoffice.org/api/docs/com ... ormat.html
Enum PaperFormat do the job: https://www.openoffice.org/api/docs/com ... ormat.html
OpenOffice 4.1.12 - Windows 10