Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » A question about DSOFramer.ocx
A question about DSOFramer.ocx [message #460327] Wed, 20 December 2006 03:35 Go to next message
xldelg is currently offline xldelgFriend
Messages: 17
Registered: July 2009
Junior Member
I embeded DSOFramer.ocx in my RCP application like this:

-----------------------------------------------------
oleFrame = new OleFrame(composite, SWT.NONE );
clientSite = new OleClientSite(oleFrame,SWT.NONE , "DSOFramer.FramerControl");
clientSite.doVerb(OLE.OLEIVERB_SHOW);
OleAutomation word = new OleAutomation(clientSite);
-----------------------------------------------------

Then I open a word document like this:
Variant location = new Variant("d:\\share\\a.doc");
word.invoke(0x00010004,new Variant[]{location});
-----------------------------------------------------

The document didn't display, but the menu bar did.
And if I open the document outside my RCP document,
I got a warning that the document has been opened by others,
I can only read it .
Why? And how can solve it ?
Any help appreciated!
Re: A question about DSOFramer.ocx, please help! [message #462209 is a reply to message #460327] Wed, 24 January 2007 18:27 Go to previous message
Duong Nguyen is currently offline Duong NguyenFriend
Messages: 7
Registered: July 2009
Junior Member
I'm a newbie to OLE and DSOFramer and I'm trying to learn it myself.

However, I know the answer to your question. If you want to open a word doc, try this:

OleAutomation auto = new OleAutomation(clientSite);
int ids[] = auto.getIDsOfNames(new String[] { "Open" });
auto.invoke(ids[0], new Variant[] { new Variant("e:\\temp\\doc1.doc") });
auto.dispose();
Previous Topic:empty editor area after reloading
Next Topic:Eclipse Skin
Goto Forum:
  


Current Time: Fri Sep 20 10:14:23 GMT 2024

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

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

Back to the top