LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices


Rate this Entry

OOo/LibreOffice Calc BASIC: cell display orientation/rotation

Posted 05-18-2012 at 01:45 AM by catkin

There are incorrect examples on the internet of using OOo/LibreOffice BASIC to set Calc cell contents to display vertically, the same as can be done interactively via Format Cell -> Alignment -> Text Orientation and setting the angle to 90 degrees.

The problem is that they show 90 but the units are 1/100ths of a degree so vertical requires 9000.

This works
Code:
oCell.setPropertyValue( "RotateAngle", 9000 )
This does not work (it is here to help people searching for this string when they use it and it does not have the intended effect)
Code:
oCell.setPropertyValue( "RotateAngle", 90 )
Posted in Uncategorized
Views 2709 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration