Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » embedding Word.Document with SWT - a solution?...
embedding Word.Document with SWT - a solution?... [message #400828] Sat, 27 December 2003 00:30 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
>
Re: embedding Word.Document with SWT - a solution?... [message #401369 is a reply to message #401076] Mon, 29 December 2003 16:35 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
I have added your reference to the Windows bug report to the following SWT
bug report:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=21148

I will investigate the propsed workaround of using IDispatch.GetTypeInfo or
IProvideClassInfo.getClassInfo.

Add yourself to the bug report. I will attach a patch to the bug report for
you to try as soon as I get a chance to try this workaround.

"Jim Hargrave" <jhargrav@indra.com> wrote in message
news:bskpgn$9hp$1@eclipse.org...
> 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
> >
> >
> >
>
>
Previous Topic:Developing SWT code with Eclipse users on other platforms
Next Topic:tabItem taking the whole TabFolder size
Goto Forum:
  


Current Time: Fri Apr 26 14:42:56 GMT 2024

Powered by FUDForum. Page generated in 0.03859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top