摘要: 在使用反射的过程中如果发生“exception has been thrown to the target of an invocation”异常,那很有可能是被反射的Assembly中引用了其他Assembly而这些被引用的Assembly在主程序中没有被引用。欢迎访问我的主博客《许阳的红泥屋》 阅读全文
posted @ 2012-06-28 17:23 许阳 无锡 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Office解决方案分应用级解决方案(application-level solution 也就是Add-in)和文档级解决方案(document-level solution包括Excel template application,Excel workbook application,Word t... 阅读全文
posted @ 2012-06-28 13:36 许阳 无锡 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在Word中用户可以通过UndoRecord来记录一组动作,并显示在撤销菜单内。这样可以让用户一次性删除大量的操作。下面的代码是在Visual Studio 2010, Word 2010 下建立的一个示例:using System;using System.Collections.Generic;... 阅读全文
posted @ 2012-06-28 11:34 许阳 无锡 阅读(523) 评论(0) 推荐(0) 编辑