Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

How to get copied content controls

$
0
0

Hi,

I'm using a Ribbon XML to override copy and paste events, just like this:

public void OnCopy(IRibbonControl control, bool cancelDefault)
{
	Report.Document.Application.Selection.Copy();
}

public void OnPaste(IRibbonControl control, bool cancelDefault)
{
	Report.Document.Application.Selection.Paste();
}

And it works perfectly. I've put some MessageBox.show("something") just to be sure and they got fired, so it works. And I've debugged into the methods too.

Ok. Now what I want is to get the content controls that are copied when the user presses "ctrl+C". They must be in the clipboard but I can't find any way to get them. In other words, I want to get a list of ContentControl from the clipboard data.

Thanks in advance,

Javier Montoro



Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>