位置: 首頁 > 計算機 > office辦公

aspose.words解決實現文件格的中創word方法

2016-08-23 office辦公

程式碼如下所示:

複製程式碼 程式碼如下:

//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");

標籤:AsposeWords Word 中創 文件
2017-10-10
2016-08-23
2016-07-07
2017-06-29
2019-04-17
2014-07-20
2016-04-23
2016-03-18
2017-08-28
2016-11-11

Copyright ©2024 才華齋 All Rights Reserved.