OLE IDispatch | Adobe SVG Control : Invoking ECMAScript functions [message #442778] |
Mon, 13 September 2004 08:46 |
Eclipse User |
|
|
|
Originally posted by: ralf.audiofarm.de
With the help of Veronika's "ActiveX Support In SWT" article & other
resources on the web I managed to embed Adobe's Viewer Control into an SWT
application and access properties and methods as defined in the IDL.
http://www.protocol7.com/svg-wiki/index.php/AsvIDL
Loading SVG documents via "setSrc(url)" works. However, I'm stuck with
invoking ECMAScript functions embedded *in* the loaded SVG document from
within Java.
It's supposed to look like that, but I wasn't able to pass the correct
parameters and make it work:
Variant result = oleAutomation.invoke(0x0000006d); // getWindow()
IDispatch window = result.getDispatch();
window.invoke(dispIdMember, riid, lcid, dwFlags, pDispParams, pVarResult,
pExcepInfo, pArgErr);
Does somebody have a working example, maybe even for other Controls (MSIE
Browser Control + HTML document + invoking embedded Javascript functions)?
ralf ...
|
|
|
Repost: OLE IDispatch | Adobe SVG Control : Invoking ECMAScript functions [message #443525 is a reply to message #442778] |
Mon, 27 September 2004 11:37 |
Eclipse User |
|
|
|
Originally posted by: ralf.audiofarm.de
I'm reposting this question.
Maybe someone who knows is back from summer holiday meanwhile ... ;o)
ralf ...
> With the help of Veronika's "ActiveX Support In SWT" article & other
> resources on the web I managed to embed Adobe's Viewer Control into an SWT
> application and access properties and methods as defined in the IDL.
> http://www.protocol7.com/svg-wiki/index.php/AsvIDL
> Loading SVG documents via "setSrc(url)" works. However, I'm stuck with
> invoking ECMAScript functions embedded *in* the loaded SVG document from
> within Java.
> It's supposed to look like that, but I wasn't able to pass the correct
> parameters and make it work:
> Variant result = oleAutomation.invoke(0x0000006d); // getWindow()
> IDispatch window = result.getDispatch();
> window.invoke(dispIdMember, riid, lcid, dwFlags, pDispParams, pVarResult,
> pExcepInfo, pArgErr);
> Does somebody have a working example, maybe even for other Controls (MSIE
> Browser Control + HTML document + invoking embedded Javascript functions)?
> ralf ...
|
|
|
Powered by
FUDForum. Page generated in 0.03092 seconds