|
-
Jun 11th, 2005, 05:04 AM
#1
Thread Starter
Fanatic Member
ocx in .Net
*** Please note that this I've posted on VB.Net forum as well and just wanted to ensure that if somebody drops in here and knows the solution can help me out. Its not a cross-post.Thanks.
Hi all,
What I’m trying to achieve is kind of OLE in .Net. I’ve written an ocx control which contains a picture control in it. In .Net application I pass to it the image location and the image appears on the ocx control placed on the .Net form. Now I want to paste this ocx object in Microsoft word using the Clipboard class. But even after I set the data onto the clipboard, the paste menu of the word is still disabled. What I’ve gathered from MSDN is that there are certain specific formats which can be saved in the Clipboard class. Can you suggest any workaround to this?
The reason for doing this is, I want my application to give users the functionality of copying a particular chart from the application onto the Word or Excel. Now, when the user double-clicks the chart pasted in the (say) Word, then it should ShellExecute my application with some command line arguments. This was the reason I decided to create an OCX, as that can handle the double click event and execute the application. When the ocx is in IE and double clicked it works as desired. Please suggest if this approach is flawed and advise.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|