That is strange, since it worked for me ... well I removed some args that I though would be superfluous ... you could give the following a try

---------------------
sub printSelection
xFrame   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Copies"
args1(0).Value = 1
args1(1).Name = "Selection"
args1(1).Value = true
args1(2).Name = "Collate"
args1(2).Value = false

dispatcher.executeDispatch(xFrame, ".uno:Print", "", 0, args1())
end sub
---------------------
Hi Stephan,

This fails for me. I don't know if it's for the language. I've Spanish language's pack installed, so ... I don't know. I've tried to traslate the value's names to that in Spanish, but it don't sucess.

I will try it changing the language. But it is not the solution.

Thanx

Moisés

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

Reply via email to