使用C#将html文本插入.odt OpenOffice文档
请帮助在C#中使用OpenOffice Writer文档的任何人。 如何将HTML格式化文本插入到文档中? 以下代码:
((unoidl.com.sun.star.text.XTextDocument)xComponent).getText().getStart(). setString("The first line in the newly created text document.\n\n");
The first line in the newly created text document.
准确插入The first line in the newly created text document.
我需要插入“新创建的文本文档中的第一行 ”
有解决方案吗
如果要插入格式化文本 – 则需要更改(段落/字符)属性。
如您所见,OOo对HTML标签没有反应;-)