Automation of excel,word and powerpoint
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi All, Is it possible to automate all office applications(ms excel,ms word and power point) in single MFC project? All applications expose many sames classes like _Application. This class is available in all three. How can I do it? Thanks.
Just use the no_namespace keywork in the #import "..." Then you must refer each function with the namespace before:
#import <c:\app\office\office\excel9.olb> no_namespace
...
Excel::_ApplicationPtr excp;
...