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

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

    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

    91久久大香伊蕉在人线_国产综合色产在线观看_欧美亚洲人成网站在线观看_亚洲第一无码精品立川理惠

      色狠狠一区二区三区播放 | 亚洲综合色在线综合色 | 精品呦一区二区三区 | 亚洲日本一区二区三区线 | 欧美一二区一二区在线 | 中文字幕第一页在线资源 |