Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I'm trying to launch the default web browser to load an html file with
the preview of the web wizard results.

Im trying to get a dispatcher using the following code:

  xDispatch = xFrame.queryDispatch(oURL, "_top", ALL)

Being oURL:

(com.sun.star.util.URL){ Complete = (string)".uno:OpenHyperlink", Main =
(string)"", Protocol = (string)"", User = (string)"", Password =
(string)"", Server = (string)"", Port = (short)0x0, Path = (string)"",
Name = (string)"", Arguments = (string)"", Mark = (string)"" }

The xFrame instance is acquired as follows:

  xDesktop = xMSF.createInstance( "com.sun.star.frame.Desktop")
  xFrame = xDesktop.findFrame("_blank", 0)

I've got several browsers installed in my environment (Ubuntu Quantal)
and it works fine using the java version of the web wizard.

Any idea why I'm getting always NULL as result of the queryDispatch call ?

Thanks,

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.