MiniWord
MiniWord copied to clipboard
.NET Word(docx) exporting template engine without COM+ & interop (support Linux and Mac)
希望能增加给word生成页眉页脚功能
如題 希望可以用一個樣版,產生多筆資料到同一份word中,也可以插入分頁 目前用openxml太複雜做
For example, the template should be internationalized (Chinese and English versions are provided), the template wants to be placed in a file for easy management, before use, use the total...

string Cont = "test\x06test"; DocUtil.GenerateDoc( "test.docx", "template\\Base.docx", new Dictionary(){ { "Title", "test" }, { "Cont", Cont } }); public static string GenerateDoc(string outputPath, string templatePath, object model) { try {...
我的版本是:MiniWord 0.8.0 系统环境:MacOs 程序环境:.net 6 控制台应用程序 操作流程:二级列表渲染图片不行,渲染文字可以。 渲染图片代码如下: ` var hpImagesDicList=hpAlarmList.Select(hp => new Dictionary { ["Name"] = hp.CameraName, ["Images"] = hp.PicPathArray.Select(picPath=>new MiniWordForeach { Value = new Dictionary { ["Image"]=new MiniWordPicture...
扩展了2个功能
1. 支持嵌套对象的渲染 比如:`{{objA.objB.prop1}}` 2. 增加@foreach -@endforeach循环体 ### 循环 `@foreach` 和 `@endforeach` tags . ##### Example ```csharp var value = new { LoopData = new List() { new { Type="类型A", Items...
WPS打开没有超链接显示,Word就可以显示,能否支持下?
20条数据循环 using MemoryStream stream = new MemoryStream(); MiniSoftware.MiniWord.SaveAsByTemplate(stream, templateBytes, data); 需要好几秒,能否有批量生成或者性能优化一下?