- 相關推薦
aspose.words解決實現(xiàn)文檔格的中創(chuàng)word方法
代碼如下所示:
復制代碼 代碼如下:
//Open document and create Documentbuilder
Aspose.Words.Document doc = new Aspose.Words.Document("demo.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
//Set table formating
//Set borders
builder.CellFormat.Borders.LineStyle = LineStyle.Single;
builder.CellFormat.Borders.Color = Color.Red;
//Set left indent
builder.RowFormat.LeftIndent = 100;
// etc...
//Move documentBuilder cursor to the bookmark
builder.MoveToBookmark("myBookmark");
//Insert some table
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
builder.InsertCell();
builder.Write("this is cell");
}
builder.EndRow();
}
builder.EndTable();
//Save output document
doc.Save("demo2.doc");
【aspose.words解決實現(xiàn)文檔格的中創(chuàng)word方法】相關文章:
Word文檔字數(shù)快速統(tǒng)計的方法09-02
《在WORD文檔中插入圖片》說課稿07-09
如何取消Word文檔中的超鏈接11-19
Word輕松設置長文檔的頁眉頁腳方法02-21
如何取消Word文檔中的超鏈接呢09-23
word停止工作的解決方法08-18
word中輸入分數(shù)的方法07-02
Word文檔1.25倍行間距的設置方法12-27
如何給word文檔加密08-02