How to get alternative text of object in Basic?
[Solved] How to get alternative text of object?
[Solved] How to get alternative text of object?
Last edited by Evgeniy on Tue Jan 21, 2020 5:11 am, edited 2 times in total.
OpenOffice 4.1.7 OS: Win10 x32 + Win10 x64
Re: How to get alternative text of object?
Strangely, that text is the Title property. If I enter something in that box labeled Alternative (Text Only), I can print it out with the following code. (My document only has one picture)
Code: Select all
oDP = ThisComponent.DrawPage
oObj = oDP.getByIndex(0)
print oObj.Title
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: How to get alternative text of object?
I enter "foooo" as alternative text and select the shape.
menu:Tools>Add-ins>Mri <-- Selection
I select the properties tab and do a search for "foooo" in the little search box.
It is the "Title" property.
menu:Tools>Add-ins>Mri <-- Selection
I select the properties tab and do a search for "foooo" in the little search box.
Code: Select all
Title string Fooooo
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: How to get alternative text of object?
Tnanks. I could not think that this is "Title" property.
OpenOffice 4.1.7 OS: Win10 x32 + Win10 x64
Re: [Solved] How to get alternative text of object?
That's why I looked it up.Evgeniy wrote:Tnanks. I could not think that this is "Title" property.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice