GroupDocs.Assembly for .NET 26.7 重新整理了底層的文件生成引擎,並解決了兩個模板表達式問題——一個影響從介面構建的資料模型,另一個影響接受單一 DataRow 的自訂 KnownTypes 函式。
本次發行的新功能
| 鍵 | 類別 | 摘要 |
|---|---|---|
| ASSEMBLYNET-137 | ✨ 增強 | 升級文件生成引擎 |
| ASSEMBLYNET-92 | 🐛 錯誤修正 | 模板表達式無法使用從基礎介面繼承的成員 |
| ASSEMBLYNET-59 | 🐛 錯誤修正 | 自訂 KnownTypes 函式接受單一 DataRow 時,未能從 JSON 物件節點解析 |
公開 API 變更
GroupDocs.Assembly for .NET 26.7 未引入 任何公開 API 變更。這兩項修正僅使先前失敗的模板表達式得以解析;它們不會改變已正常運作的模板行為。
程式碼範例
using GroupDocs.Assembly;
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(
"template.docx",
"output.docx",
new DataSourceInfo(customer, "customer"));