Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3400442579 opened this issue Jul 5, 2024 · 0 comments
Open

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

3400442579 opened this issue Jul 5, 2024 · 0 comments

Comments

@3400442579
Copy link

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();
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant