Hello all,
I would like to open a chm file via a button. For that I will need a macro calling uno:opendocument/webpage.
The below does not work, guess its because the argument in a control property is called URL. Anyone in the know of the proper syntax, thanks.
Sub ohlp
dim document as object
dim dispatcher as object
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService(“com.sun.star.frame.DispatchHelper”)
dispatcher.executeDispatch(document, “.uno:Open document/web page”, “xmpqplus.chm”, 0, Array())
End sub