Piecing RTF from SharePoint item fields together into a Word template

We’re running into an issue where we’re trying to pull multiple line field values (supporting RTF) from one SP List Item into a templated Word document. We seem to either have to pull the field value into Word as plain text (which loses any formatting information of the RTF), or we pull the value in as a string, which ends up being rendered with the RTF mark-up tags visible, rather than the text being formatted.
How would ASPOSE resolve this problem?

Hi Garth,

Thanks for your inquiry. I think, you can import your formatted RTF string to Word document by using the following code snippet:

string rtfStr = "Your RTF string";
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
byte[] dataBytes = encoding.GetBytes(rtfStr);
MemoryStream stream = new MemoryStream(dataBytes);
Document doc = new Document(stream);

I hope, this helps.

Best regards,