What are the clipboard formats for Microsoft Office where you can delete a chart?

I am trying to create a DOCX in memory that I can provide for a drag and drop operation.

First I tried "Insert Source". However, although it seems perfect (DOCX in an OLE wrapper), Word does not use it to drag and drop, although it does use it to cut and paste. Is there a way to get Word / Excel / PPT to use "Insert Source?"

Secondly, FileContents is sometimes used, and it looks like it will work. However, while Spy shows that it is being requested when Word is dragging and dropping into Word, it does not work when my application is the source. Word does request my application if it can execute FileContents, but never requests data in this format - even if it is indicated in my application that this is the only format.

SO, how can I pass drag / drop something that includes content controls and diagrams (so RTF, HTML, etc. won't work)?

thanks - dave

+3
source share

Source: https://habr.com/ru/post/1796679/