aspose.words解决实现文档格的中创word方法
- office办公
- 关注:8.6K次
代码如下所示:
复制代码 代码如下:
//Open document and create Documentbuilder
ment doc = new ment("");
DocumentBuilder builder = new DocumentBuilder(doc);
//Set table formating
//Set borders
Style = le;
r = ;
//Set left indent
Indent = 100;
// etc...
//Move documentBuilder cursor to the bookmark
ToBookmark("myBookmark");
//Insert some table
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
rtCell();
e("this is cell");
}
ow();
}
able();
//Save output document
("demo");
- 文章版权属于文章作者所有,转载请注明 https://xuezhezhai.com/jsj/office/wlpkz4.html