I am developing an add-in for Word in VB.NET. One of the functions is to Paste clipboard contents as an Enhanced Metafile (my company frequently copy charts and tables from Excel to Word in this format).
I would like to test that the contents of the clipboard can be pasted as enhanced metafile. Currently I just trap the error if it cannot but if I can find out in advance I can then disable the menu item (or change its name) to be clearer to the user.
Code for this test would be much appreciated.