How to Insert preformatted RTF and ASCII into the same Document

I'm currently just beginning to evaluate the Aspose.Words product. We developed a solution using Word automation (big mistake) and are looking for a replacement. We have an application that pulls RTF-formatted text from a 3rd party database. This text doesn't represent an entire document. Some of it may just be an RTF table, for example. Other text is not RTF but plain ASCII. What we need to be able to do is build RTF documents from this combination of ready-formatted RTF and ASCII text. I only have a very cursory understanding of the Aspose DOM so far but all the insert related functions seem to take text strings which wouldn't seem to work if the the string I'm giving it has various RTF tags already there. It'd probably just make the tags a part of the rendered document. How can I go about using the DOM to insert or merge both RTF and ASCII into the same document.

Hi Sean,


Thanks for your inquiry. There is still no direct way to insert RTF into a document. You can however easily achieve this by loading your RTF string into a new document and inserting that into your exisiting document. Please check the code example at following forum links.

https://forum.aspose.com/t/29656
https://forum.aspose.com/t/57912

If you still face problem, please share your RTF contents and ASCII text. We will share the code according to your requirement.