Document Builder: 如何将structure level的field加入到word document的table中
Created by Jerry Wang, last modified on Jul 24, 2014
1. 創建基于service contract的web service. 選中root node:
?
?
?
選中root node下的直接子節點,點Confirm Selection button:
?
?
?
選中Items of Header,點Confirm Selection:
?
?
?
?
?
?
選中BTItemPricingExt,點Confirm Selection:
?
打開Document template designer,將Itemsofheader下面的node ProcessType, ObjectId, NumberInt 和Product選中,拖拽到左邊layout區域:
?
?
?
?
?
下圖紅色部分需要手動維護:
?
?
?
對于structure Btitempricingext下面的子節點,例如Guid, 無法直接拖拽到table中。首先將Guid拖拽到table 外部:
?
?
?
然后才能夠將table外部的Guid重新拖拽到table內部。重復上述操作,將NetprPricUnit, productId等field也拖拽到table內部成為table column。
?
?
?
測試效果如下: 上述field在BOL browser里的值顯示如下:
?
?
?
runtime時這些值能夠正確的被填充到word document里:
?
總結
以上是生活随笔為你收集整理的Document Builder: 如何将structure level的field加入到word document的table中的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 巴菲特:ChatGPT不可思议,但我不知
- 下一篇: 《王者荣耀》S31赛季新版本推迟上线!原