Have you thought of using the DispatchHelper api ?
Something like (in basic):
dim args(1) as new com.sun.star.beans.PropertyValue
args(0).Name = Template
args(0).Value = Default
args(1).Name = Family
args(1).Value = 2
dispatcher.executeDispatch(document, .uno:StyleApply, , 0, args())
On
ashok _ wrote:
Have you thought of using the DispatchHelper api ?
Something like (in basic):
dim args(1) as new com.sun.star.beans.PropertyValue
args(0).Name = Template
args(0).Value = Default
args(1).Name = Family
args(1).Value = 2
dispatcher.executeDispatch(document, .uno:StyleApply, , 0,