[Solved] How set "wrap text" in calc programmingly

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
winchell
Posts: 10
Joined: Thu Mar 31, 2022 5:45 am

[Solved] How set "wrap text" in calc programmingly

Post by winchell »

I tried this:

Code: Select all

setProperty("WrapText",true)
But the program crashed, how can i set wrap text in C#?
Also is there any quick way to query the property key in calc?
Last edited by winchell on Wed Apr 13, 2022 12:33 pm, edited 1 time in total.
OpenOffice 7.3 on Windows 10
JeJe
Volunteer
Posts: 2778
Joined: Wed Mar 09, 2016 2:40 pm

Re: How set "wrap text" in calc programmingly

Post by JeJe »

Try "IsTextWrapped" for the property.

Edit:

And the extension MRI should help you.

https://extensions.openoffice.org/en/pr ... ction-tool
Last edited by JeJe on Mon Apr 11, 2022 11:22 am, edited 1 time in total.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
Zizi64
Volunteer
Posts: 11358
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How set "wrap text" in calc programmingly

Post by Zizi64 »

Please upload the full code of your soubroutine and an ODF type sample file here.

You can adjust the properties of the applied Cell Style by your macros. Always use Cell Styles instead of the direct formatting method.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Post Reply