473,413 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Clipboard issue with VSTO & VS 2005

This is a duplicate of a posting on Officedev so apologies to anyone who's
read this already.

I had an Office add-in built in VB.Net 2003 with an Excel and a Word add-in
class that transferred data from Excel to Word using the clipboard. It worked
well until I developed a new version using VS 2005 and VSTO (the Excel and
Word add-ins are now separate DLLs). Now I find that after placing data on
the clipboard using the Excel.Range.Copy method, this data is only visible to
the Excel add-in. Within the Word add-in, calling Clipboard.GetDataObject
returns Nothing whereas calling the same method from within the Excel add-in
returns the data.

The Excel add-in gets a reference to the Word add-in by calling
Marshal.GetActiveObject("Word.Application") and looping through the Word
application's COMAddIns collection. The Object property has been set by
overloading the RequestComAddInAutomationService function in the Word add-in
(textbook implementation) and the Excel add-in calls a method on this object.
It is this method that is tryng to retrieve the data from the clipboard.

I haven't changed the code at all in the new version (apart from what's
necessary to implement the VSTO-style add-in) so I'm guessing it's something
to do with the add-ins running in different threads. Can anyone shed some
light on this?

Thanks

Pete
Apr 25 '07 #1
0 1294

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Howard Kaikow | last post by:
I just visited the MSFT web site and saw the comparison/pricing of the different VS 2005 versions. I was looking for a statement of the system requirements for VS Pro and VSTO, could not find. ...
2
by: Le | last post by:
Folks, I'm trying to do some office automation using VSTO 2005. I've verified that ..Net Programmability Support is installed for every MS Office application and Microsoft Forms 2.0 .Net...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
1
by: RandomElle | last post by:
Can anyone help me out with locating & using the package and deployment wizard for Access 2003? I have searched for HOURS and cannot find the Package & Deployment wizard for Access2003 anywhere on...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.