建立WORD文档例子(1)
来源:互联网 发布:火影忍者特效ps软件 编辑:程序博客网 时间:2024/05/14 09:46
using word; //引用COM组件 0ffice2000
public class CreateWord
{
private Range rngWord;
private Selection selectWord;
private Document dotWord;
private Application appWord;
public void CreateDocument()
{
appWord = new Application();
appWord.Visible = false;
dotWord = new Document();
object objectTemplate = “c:/demo.dot”;//模板文件
dotWord = appWord.Documents.Add(ref objectTemplate,ref missing,ref missing,ref missing );
selectWord = appWord.Selection;
rngWord = dotWord.Range(ref missing ,ref missing ); //定义输入信息区域,在文件开头.
rngWord.Text = “This is title ”;
rngWord.Font.Size = 10;//设置字号
rngWord.Font.Name = “Arial”;//设置字体
rngWord.Font.Color = WdColor.wdColorBlack;//设置字体颜色/
rngWord.Font.Bold = 1;// 字体加粗
}
}
- 建立WORD文档例子(1)
- 建立WORD文档例子(1)--补充(WINWORD进程)
- c# 生成word文档例子
- word在线文档读取例子
- 利用iText生成word文档例子参考
- Itext导出Word文档的例子
- Itext导出Word文档的例子
- php实现word转html文档的例子
- JSP生成WORD文档 1
- JSP生成WORD文档 1
- (1) POI提取word文档
- Word文档
- 一个java读取word文档并将其写入xml文档的例子
- C# 操作word总结(一)——建立文档和添加页眉页脚
- java iText生成word文档(1)
- Java处理Word, Excel, PDF文档的4种开源系统的代码例子
- Java处理Word, Excel, PDF文档的4种开源系统的代码例子
- Java处理Word, Excel, PDF文档的4种开源系统的代码例子
- 类似于淘宝的分页算法
- 免费资源(AT指令,外挂写作电子书)
- Process的使用
- Java 理论与实践: 正确使用 Volatile 变量
- 诚招工作约2年的delphi程序员(北京-上地)
- 建立WORD文档例子(1)
- 鼠标双击DataGridView单元格变成ComboBox
- xtree在struts下动态加载树
- 安装Ms SQL Server 2005 开发版时出现性能计数器要求安装错误的解决办法
- E文积累_20070905
- 简单工厂模式SimpleFactory
- skyeye试验环境搭建
- 什么是FPGA
- executeUpdate()返回值