I was using a small function in libreoffice 3.x to change the zoom setting for Writer, but when executing the same code in 4.0 it doesn’t actually change the zoom value, but it opens the zoom window. Is this a bug? Is there a simple fix? Below is a fragment of the code that I’m using.
(Windows XP)
dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Zoom.Value"
args1(0).Value = Magnification
args1(1).Name = "Zoom.ValueSet"
args1(1).Value = 28703
args1(2).Name = "Zoom.Type"
args1(2).Value = 0
dispatcher.executeDispatch(document, ".uno:Zoom", "", 0, args1())