在C Sharp中合并rtf文档

发布于 2024-08-05 01:49:33 字数 126 浏览 2 评论 0原文

我正在使用 NRtfTree 合并两个 rtf 文档。合并的文档不保留与模板相同的外观,这似乎与编码有关。如何设置 NRtfTree 的编码。或者是否有任何其他组件可以用来合并两个文档而不使用 Office 自动化。

谢谢

I am using NRtfTree to merge two rtf documents. The merged document does not retain the same look as the template and it looks to be a problem to do with encoding. How do I set the encoding for NRtfTree. Or is there any other component I can use to merge two documents without using Office automation.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绳情 2024-08-12 01:49:33

考虑使用 .Net RichTextBoxRichTextBox 类

创建两个 System.Windows.Forms.RichTextBox 对象,设置第一个和第二个 rtf 文件中的值。然后创建另一个 RichTextBox 将两个 RTF 文档放在一起。
System.Windows.Forms.RichTextBox.Rtf = fromNrOne + fromNrTwo;

Consider using .Net RichTextBox and Class RichTextBox.

Create two System.Windows.Forms.RichTextBox objects set the value from the first and then the second rtf file. Then create another RichTextBox with the two RTF documents put together.
System.Windows.Forms.RichTextBox.Rtf = fromNrOne + fromNrTwo;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文