embedding Word.Document with SWT - a solution?... [message #400828] |
Sat, 27 December 2003 00:30 |
Eclipse User |
|
|
|
Originally posted by: jhargrav.indra.com
I've read that many people have had trouble embedding a Word.Document
ActiveX using SWT. This is mostly with Word 2000. Here's a typical error
message: "Failed to find requested interface on OLE Object. result
= -2147467262"
I'm getting this same error. My code works with every other ActiveX I have
tried: PDF, Excel, Rich Text Control etc.. Has there been a solution found
for this problem?
I hit on an article in the MSN Knowledge base which may shed some light. I
would appreciate any help resolving this problem - I am not an ActiveX
expert!. I can't recommend SWT in our group until we can show a working
prototype of editing a Word doc inside an SWT frame. I'm running XP
Professional SP1 with Word 2000 (all relevant patches).
Here's the article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;249626
SYMPTOMS
Traditionally, clients that support Object Linking and Embedding (OLE) can
use both the TypeLib key and Version key in the registry (under the CLSID
for an embeddable object) to locate the type library that describes the
object and its methods.
In Word 2000, the value for the Version key does not match the version
number of its type library. Consequently, clients that rely on this behavior
may fail to identify the correct type library for Word 2000 when using the
registry.
Jim Hargrave
|
|
|
Re: embedding Word.Document with SWT - a solution?... [message #401076 is a reply to message #400828] |
Sat, 27 December 2003 20:19 |
Eclipse User |
|
|
|
Originally posted by: jhargrav.indra.com
Word embedding in Eclipse itself is broken on my Machine (and many others
from the archives). Is it only Word 2000 that has the problem? Are there any
work arounds for this problem? It looks like that pulling the progId from
the registry is causing the problem - is there an alternative way to create
an ActiveX control.
The strange thing is that I am able to script word with the Jacob library.
Is there a way to compine SWT and Jacob to solve this problem?
I desperatley need to find a solution becuase if we don't - we won't be able
to use SWT. Now that we can combine SWT and SWING I'm trying to make a new
pitch - but the abillity to embed ActiveX controls is curcial.
Jim
"Jim Hargrave" <jhargrav@indra.com> wrote in message
news:bsijr6$pbh$1@eclipse.org...
> I've read that many people have had trouble embedding a Word.Document
> ActiveX using SWT. This is mostly with Word 2000. Here's a typical error
> message: "Failed to find requested interface on OLE Object. result
> = -2147467262"
>
> I'm getting this same error. My code works with every other ActiveX I have
> tried: PDF, Excel, Rich Text Control etc.. Has there been a solution
found
> for this problem?
>
> I hit on an article in the MSN Knowledge base which may shed some light. I
> would appreciate any help resolving this problem - I am not an ActiveX
> expert!. I can't recommend SWT in our group until we can show a working
> prototype of editing a Word doc inside an SWT frame. I'm running XP
> Professional SP1 with Word 2000 (all relevant patches).
>
> Here's the article:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;249626
> SYMPTOMS
> Traditionally, clients that support Object Linking and Embedding (OLE) can
> use both the TypeLib key and Version key in the registry (under the CLSID
> for an embeddable object) to locate the type library that describes the
> object and its methods.
>
> In Word 2000, the value for the Version key does not match the version
> number of its type library. Consequently, clients that rely on this
behavior
> may fail to identify the correct type library for Word 2000 when using the
> registry.
>
> Jim Hargrave
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03859 seconds