G
Guest
I have done a screen clipping in oneNote and now want to save to file.
So I copy the image in oneNote, and then using c# try and getData from the
clipboard and store in an image to be able to save to file.
However unlike Word, OneNote does not paste a bitmap compatible image to the
clipboard. It does sat is supports EnhancedMetaFile, DeviceIndependentBitmap,
OneNote internal or HTML.
The first 2 return when used with getdata return null.
Is this a bug in OneNote or my VS code?
oDataObj.GetDataPresent(DataFormats.MetafilePict); returns true
oDataObj.GetData(DataFormats.MetafilePict); returns null
Same for Dib and EnhancedMetafile.
Simon
So I copy the image in oneNote, and then using c# try and getData from the
clipboard and store in an image to be able to save to file.
However unlike Word, OneNote does not paste a bitmap compatible image to the
clipboard. It does sat is supports EnhancedMetaFile, DeviceIndependentBitmap,
OneNote internal or HTML.
The first 2 return when used with getdata return null.
Is this a bug in OneNote or my VS code?
oDataObj.GetDataPresent(DataFormats.MetafilePict); returns true
oDataObj.GetData(DataFormats.MetafilePict); returns null
Same for Dib and EnhancedMetafile.
Simon