author:辰
from:辰''s blog
一段简单的创建Word代码:
public void test()
{
WordDocuments doc = new WordDocuments();
doc.CreateDocumentWithTemplate(@"E:\temp\ReportAppendixTemplate.doc");
doc.AppendText("附件二、明细表");
doc.AppendTable(5, 5);
doc.Visible = true;
doc.SaveAsDocument(@"e:\test\test.doc");
}
下载:
/Files/zc22/Pixysoft.Office.rar