Copy and paste problems with Word 2010 and Windows 7 -
i have program able exchange data ms office applications, via clipboard.
this works fine in office 2007 , windows vista/xp, fails office 2010/windows 7
idataobject *d = null; hresult hr = ::olegetclipboard(&d); if (hr == s_ok) { formatetc formatetc; formatetc.cfformat = ::registerclipboardformat("native"); formatetc.ptd = null; formatetc.dwaspect = dvaspect_content; formatetc.lindex = -1; stgmedium stgmedium; hr = d->querygetdata(&formatetc);
following call, returned error - 0x8004006a invalid clipboard format
i have tried searching web, haven't found relevant information. advice/suggestions gratefully received.
thanks.
i have similar issue in office 2007 , windows-server-2008, guess problem not office rather windows 7/2008. running program service? or executable? i'm still waiting answer question on here: clipboard copy-paste doesn't work in service on win server 2008/vista 64bit
please let me know if have resolved issue!
update: have found out sessions issue. try finding out if app , word/ other office app running in same session (try using process explorer that).
Comments
Post a Comment