前台使用textarea将数据保存在sqlserver中,使用Aspose导出word,但无法实现数据换行
只要是\n、\r或\r\n都可以换行,textarea换行符是\n,应该可以的,你调试看看后台写入时内容是否有\n
string filePath = "test.doc";
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("aaa\nbbb");
doc.UpdateFields();
doc.Save(filePath, SaveFormat.Doc);
System.Diagnostics.Process.Start(filePath);
https://blog.csdn.net/u012481812/article/details/88218537
ControlChar.CrLf