我替换模板的方法是用AddCustomProperty方法,但是这样\n在word里会变成空格,除此之外我也试过了 把\n替换成\r\n、<br>、^p、Environment.NewLine等等,但是都没用。代码如下↓:
DocX document = DocX.Load(filePath);
document.AddCustomProperty(new CustomProperty("BLNo", “aaaaaaaaaaaaa\naaaaaaa”));
document.AddCustomProperty(new CustomProperty("NotifyParty", “问起我i介绍的几款\n萨达拉萨看得见”));
↑请给位大佬们帮帮忙!是不是DocX就是不能换行啊?