超碰免费人人操|国产视频二区久久艹人人操|欧美激情第一页在线|久热最新无码中文视频|91精品国际成人|亚洲成人精品在线视频青青草|久草免费高清完整在线观看|你懂的AV在线日本黄网页|国产黄色AV日韩女同网|欧美成人色区导航片av

aspose.words解決實現(xiàn)文檔格的中創(chuàng)word方法

時間:2024-10-19 07:26:00 office辦公

aspose.words解決實現(xiàn)文檔格的中創(chuàng)word方法

  代碼如下所示:

  復(fù)制代碼 代碼如下:

  //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方法】相關(guān)文章:

Word文檔字?jǐn)?shù)快速統(tǒng)計的方法09-02

《在WORD文檔中插入圖片》說課稿07-09

如何取消Word文檔中的超鏈接11-19

Word輕松設(shè)置長文檔的頁眉頁腳方法02-21

Word2007文檔中顯示文本動畫的操作方法07-17

如何取消Word文檔中的超鏈接呢09-23

word停止工作的解決方法08-18

word中輸入分?jǐn)?shù)的方法07-02

Word文檔1.25倍行間距的設(shè)置方法12-27

如何給word文檔加密08-02