Generic Office 2007 _Application Interface class
-
Using VS2008, I've created an MFC TypeLib class, CApplication from _Application Interface in Ms Word 12.0 Object Library <8.4>. As expected, the class works with my Word 2007, but doesn't with Excel, PowerPoint etc. My question, is there a way for me to create a CApplication class that caters to all the Ms Office family? I'm not looking at automating application specific functions, only common function (e.g: Save, Exit)
-
Using VS2008, I've created an MFC TypeLib class, CApplication from _Application Interface in Ms Word 12.0 Object Library <8.4>. As expected, the class works with my Word 2007, but doesn't with Excel, PowerPoint etc. My question, is there a way for me to create a CApplication class that caters to all the Ms Office family? I'm not looking at automating application specific functions, only common function (e.g: Save, Exit)
You cannot do it. It's a COM interface and all applications have a different signture and functions. So you need one per application and per version.
-
You cannot do it. It's a COM interface and all applications have a different signture and functions. So you need one per application and per version.
Too bad. I was hoping for an _Application interface that's being shared among all Office Apps (eg:_CommandBars). Does this mean I have to create individual dll for each Office App? I saw a few com addin that's available on my Word, Excel and PowerPoint. I don't think they have 3 separate dlls. Any idea how they are doing it?