Niklas Nebel ha scritto:
Bart Aimar wrote:
I need to make full the screen (i.e. OO CAlc window)  with a given range.
In other word, I need to zooming (with macro) in manner that a given range fill the OO window.


Select the range in the view, and then set the property "ZoomType" to "OPTIMAL":
    oView.select(oRange)
    oView.ZoomType = com.sun.star.view.DocumentZoomType.OPTIMAL

Thank you Niklas for the excellent solution!

I have replaced 165 rows of tremolous flicker whith 6 rows of efficient code!

:-))
thanks ++

Bart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to