'Text rotation should be a value between -90 and 90

Feb 4, 2008 at 8:01 AM
Edited Feb 4, 2008 at 8:09 AM
I'm trying to read a calculated value from a stored excel file and am getting the above error. Why is it trying to set the text rotation if I only want to retrieve a value? The text in that field is just standard orientation. If I do a 'print ($textRotation)' it results in -165....

UPDATE: The code is in Reader/Excel200.php. If I do a 'print ($style->alignment"textRotation")' the output is 255, which happens to be 2(exp)8 minus 1. Could it be that the number isn't returned in 0..360 but some other format?
Coordinator
Feb 4, 2008 at 8:55 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Feb 4, 2008 at 9:04 AM
Can you try the same using the latest source code version? (http://www.codeplex.com/PHPExcel/SourceControl/ListDownloadableCommits.aspx)
Feb 4, 2008 at 11:03 AM


maartenba wrote:
Can you try the same using the latest source code version? (http://www.codeplex.com/PHPExcel/SourceControl/ListDownloadableCommits.aspx)


I downloaded the latest version, but still get the same result. If I do a
print ($style->alignment"textRotation");
I get 255 (instead of zero, what it should be).

What if you use the PHP bindec function to convert the value from excel to a decimal value?
Coordinator
Feb 4, 2008 at 11:43 AM
Can you post some example code?