Word.Application myWord = new Word.ApplicationClass();解决思路
Word.Application myWord = new Word.ApplicationClass();解决思路
日期:2014-05-17 浏览次数:20869 次
Word.Application myWord = new Word.ApplicationClass(); 请问下面哪个最好,给出理由或者参考文献:
Word.Application myWord = new Word.Application();
Word.Application myWord = new Word.ApplicationClass();
Word.ApplicationClass myWord = new Word.Application();
Word.ApplicationClass myWord = new Word.ApplicationClass(); ------解决方案-------------------- public interface _Application
public interface Application : _Application, ApplicationEvents4_Event
public class ApplicationClass : _Application, Application,
Application继承了_Application。而ApplicationClass在2者基础上对event进一步增强。
如果只简单操作word,使用_Application, Application和ApplicationClass效果一致 ------解决方案--------------------