一、獲取word文檔內容,把書籤替換爲文字html
Document doc = new Document("模板路徑");//載入模板ui
Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc);.net
builder.MoveToBookmark("zy");//跳轉到書籤名是zy的位置htm
builder.Write("書籤位置要替換的文字");blog
把書籤替換爲圖片:圖片
builder.InsertImage(img, RelativeHorizontalPosition.Page, left, RelativeVerticalPosition.TopMargin, 0, width, height, WrapType.None);文檔
二、動態生成表格it
參考:https://www.cnblogs.com/abc101/p/5264280.htmlio