Page 1 of 1

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

Posted: Mon Apr 11, 2022 9:53 am
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?

Re: How set "wrap text" in calc programmingly

Posted: Mon Apr 11, 2022 11:20 am
by JeJe
Try "IsTextWrapped" for the property.

Edit:

And the extension MRI should help you.

https://extensions.openoffice.org/en/pr ... ction-tool

Re: How set "wrap text" in calc programmingly

Posted: Mon Apr 11, 2022 11:21 am
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.