我替换模板的方法是用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就是不能换行啊?
DocX document = DocX.Load(filePath);
document.AddCustomProperty(new CustomProperty("BLNo", “aaaaaaaaaaaaa\naaaaaaa”));
document.AddCustomProperty(new CustomProperty("NotifyParty", “问起我i介绍的几款\n萨达拉萨看得见”));
↑请给位大佬们帮帮忙!是不是DocX就是不能换行啊?
解决方案 »
- 如何通过用户控件的值过滤gridview 中的数据?求教!
- 自定义事件在属性窗口中找不到!?
- 请问页面跳转不刷新是怎么实现的。
- 困扰我很久的问题,事件究竟怎么触发?
- 高手讨论。ASPX中调用COM,如果WEB服务器上的COM组件升级并注册,ASPX工程需要重新编译吗?
- 【【【LinkButton的问题。EASY啊】】】】
- 我想知道这段代码的是什么意思? 我是新手 所以最好是能一步一步的解释。
- 谢谢windinwing(潇笑)
- 求用div+css做个编写这段代码
- 哪儿能下载ASP.NET的原码?
- easyui cobobox问题
- Asp.net mvc在部分视图中HttpContext对象为null
下载之后用wps打开显示正常,可以换行..
但是用office却不行,成一坨了,不自动换行..啊啊啊,office吃屎了啊