在.Net下生成Word文档

记住要引入Word的dll文件 Interop.word.dll
在命名空间还有记得加入using System.Reflection;
Code

有兴趣的可以去微软下载Word的VBA帮助文档


Welcome to the Microsoft Office Word 2003 VBA Language Reference

Welcome to the Microsoft Office Word 2003 Visual Basic for Applications (VBA) Language Reference. This reference contains conceptual overviews, programming tasks, samples, and references to guide you in developing solutions based on the Microsoft Office Word 2003.

Publish date of this reference: July, 2004 (version 2003)

This documentation contains the following sections:

  • What's New Provides a list of new members by object and in alphabetical order.
  • Concepts Provides important concepts for developing custom Office solutions.
  • Reference Provides reference materials for the Office object model.

 

©2003 Microsoft Corporation. All rights reserved.

posted on 2009-03-06 19:40    阅读(592)  评论(1编辑  收藏  举报

导航