A customer is in Window 7 64-bit and has Office 2010 installed. If the bitness of Office is important, I can get that information also.
I was attempting to activate a 2010 Word document through OLE, using the COleClientItem::Activate method call. VERB = OLEVERB_PRIMARY. This same call works on many other Word 2010 documents - same code.
I caught this COleException - 0xe004127a. The problem is I can't find any help identifying what is wrong with the document.
So this is what I have done so far:
I attempted to use ISupportErrorInfo on the container object. I successfully received an interface pointer, but the InterfaceSupportsErrorInfo method call returns no support.
The Interface Id used in call was IID_OleObject - which I am pretty sure is the Word object. Before I start trying a number of other things, I have some questions.
1) Is that the right RIID to call InterfaceSupportsErrorInfo with? I am thinking the only other possible one is IID_IDataObject. With no answer, that is the one I will try next.
2) What does this 0xe004127a exception mean? I realize the 0xe00 means proprietary, but even if I use 0x800 on the off chance it might be similar to a standard one, there is no information that I could find.
3) Does OLE Automation in Word actually support this extended error information interface? If so, is there a list of the meanings of these exceptions anywhere?
Any help would be appreciated. Also, if this question is better suited for another forum, please let me know that too.