国产视频最新网址|这里只有精品中文字幕情侣酒店|精品成人一区二区|91久久蜜桃网站|AV成人电影五区|欧美精品在线一区|秋霞午夜一区日韩|国产午夜成人免费看片不卡|98精品美女视频日韩一区精品视频|亚洲综合久久国产不卡日本岛国久久

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

時(shí)間:2024-10-19 07:26:00 office辦公 我要投稿
  • 相關(guān)推薦

aspose.words解決實(shí)現(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解決實(shí)現(xiàn)文檔格的中創(chuàng)word方法】相關(guān)文章:

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

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

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

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

Word2007文檔中顯示文本動(dòng)畫的操作方法07-17

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

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

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

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

如何給word文檔加密08-02