Click here to Skip to main content
15,887,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I did some research about Microsoft office clipboard and I couldn't find any API to access and read the office clipboard content. I know that I can read copied content from the system clipboard. But in my case I want to compare MS office clipboard content with the clipboard data I have. Is there any way? even using Windows API?

Thanks in advanced!

What I have tried:

I able to implement a clipboard history application by using the system clipboard.
Posted
Updated 30-May-18 23:07pm
Comments
CHill60 31-May-18 5:11am    
As far as I know the office clipboard is not exposed via any API. Using the system clipboard is probably your solution - have you seen this article by the way C# Tip: Monitoring Clipboard Activity in C# - Developer.com[^]
Dilan Shaminda 31-May-18 5:23am    
I have seen this and I also able to use this example and implement it. I was thinking to get access to MS clipboard in order to check what content is in the MS clipboard and compare it with my clipboard history..Seems like it is not possible. Btw I have seen this http://www.benf.org/excel/officeclip/ it uses MSO.dll to access the MS clipboard content. Is it a good approach?
CHill60 31-May-18 5:34am    
The author themselves says things like " It may be mildly inaccurate, it may be wildly wrong, but it fits empirically. ", "not sure", and "I make no guarantees as to the efficacy of this code. Use at your own risk.". So it depends on how risk-averse you are. If this is a personal project then fine, for commercial/business use though I always advise keeping clear of undocumented or "bypass" solutions.
Dilan Shaminda 31-May-18 5:41am    
Thank you for the information :-) This is for my research project and they want to use it in future if I able to develop it. So it is not a good way. Thank you again

1 solution

 
Share this answer
 
v2
Comments
CHill60 31-May-18 5:10am    
AFAIK the Office clipboard is not exposed via any API - I couldn't see anything on that link to say otherwise or am I missing something?
Richard MacCutchan 31-May-18 5:13am    
Yes, I looked further, and have updated the link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900