MiniWord icon indicating copy to clipboard operation
MiniWord copied to clipboard

'\u0006', hexadecimal value 0x06, is an invalid character."

Open 3400442579 opened this issue 1 year ago • 0 comments

string Cont = "test\x06test"; DocUtil.GenerateDoc( "test.docx", "template\Base.docx", new Dictionary<string, object>(){ { "Title", "test" }, { "Cont", Cont } });

public static string GenerateDoc(string outputPath, string templatePath, object model) { try { MiniWord.SaveAsByTemplate(outputPath, templatePath, model); return string.Empty; } catch (Exception ex) { return ex.ToString(); } }

3400442579 avatar Jul 05 '24 10:07 3400442579