Me voy a editar par ver por que y me sale esto:
Código: Seleccionar todo
sub Marco_gris
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(4) as new com.sun.star.beans.PropertyValue
args1(0).Name = "AnchorType"
args1(0).Value = 0
args1(1).Name = "Pos.X"
args1(1).Value = 4083
args1(2).Name = "Pos.Y"
args1(2).Value = 47897
args1(3).Name = "Size.Width"
args1(3).Value = 2041
args1(4).Name = "Size.Height"
args1(4).Value = 513
dispatcher.executeDispatch(document, ".uno:InsertFrame", "", 0, args1())
end sub
¿alguien me da alguna idea de lo que estoy haciendo mal?
Gracias y un saludo.