Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to use DSOFramer.ocx in a RCP application?
How to use DSOFramer.ocx in a RCP application? [message #460206] Mon, 18 December 2006 03:03 Go to next message
Eclipse UserFriend
hi,

I've questions about how to use DOSFramer.ocx.
I registered and embeded the DSOFramer.ocx in my RCP application with the code below:
------------------------------------------------------
private OleFrame oleFrame;
private OleControlSite controlSite;
private OleAutomation word;
oleFrame = new OleFrame(composite,SWT.NULL);
controlSite = new OleControlSite(oleFrame,SWT.NONE,"DSOFramer.FramerControl");
controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
word = new OleAutomation(controlSite);
------------------------------------------------------
1.When I run my application, the ocx displayed, but I can not use the menu "File", as if it is disabled.Why? How can I solve it?
2.How can I open a file in code after the ocx displayed?
3.How can I handle the event that user select some content? I can not get the event ID.

Thanks,Xldelg
Re: How to use DSOFramer.ocx in a RCP application? [message #460210 is a reply to message #460206] Mon, 18 December 2006 03:33 Go to previous messageGo to next message
Eclipse UserFriend
Otherwise, when I add the code:
word.getIDsOfNames(new String[]{"Application"});
the application throw Excption:
Unable to create view: Unable to find Application.
Re: How to use DSOFramer.ocx in a RCP application? [message #460249 is a reply to message #460210] Mon, 18 December 2006 09:53 Go to previous messageGo to next message
Eclipse UserFriend
In article <14191424.1166430837852.JavaMail.root@cp1.javalobby.org>,
xldelg@sohu.com says...
> Otherwise, when I add the code:
> word.getIDsOfNames(new String[]{"Application"});
> the application throw Excption:
> Unable to create view: Unable to find Application.
>

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

I have had success using https://com4j.dev.java.net/ instead.
Re: How to use DSOFramer.ocx in a RCP application? [message #460281 is a reply to message #460249] Mon, 18 December 2006 21:41 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your reply.
I have download com4j,but I don't know how to use it.
Could you please give me some example?

Thanks,
xldelg
Re: How to use DSOFramer.ocx in a RCP application? [message #460283 is a reply to message #460249] Mon, 18 December 2006 21:53 Go to previous message
Eclipse UserFriend
Can I use com4j to display,modify,etc an word document with UI?
Previous Topic:AbstractConcurrentModel and IConcurrentModelListener examples
Next Topic:Restore property value in Property View
Goto Forum:
  


Current Time: Sat Mar 15 02:48:12 EDT 2025

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

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

Back to the top