Thank you Devaraj,
I remember the problem now. I'm getting an exception when trying to convert RFTtoHtml on the bolded line.
string RTFToHtml(string rtf)
{
var rtfStream = new MemoryStream();
var writer = new StreamWriter(rtfStream, Encoding.UTF8);
writer.Write(rtf);
writer.Flush();
rtfStream.Seek(0, SeekOrigin.Begin);
rtfStream.Position = 0;
WordDocument doc = new WordDocument(rtfStream, Syncfusion.DocIO.FormatType.Rtf);
writer.Close();
HTMLExport export = new HTMLExport();
MemoryStream htmlStream = new MemoryStream();
// Saving the Word document as RTF
export.SaveAsXhtml(doc, htmlStream, Encoding.UTF8);
doc.Close();
htmlStream.Position = 0;
// Loading equivalent HTML obtained from DocIO
string html = IgnoreVoidElementsInHTML(System.Text.Encoding.UTF8.GetString(htmlStream.ToArray()));
htmlStream.Dispose();
return html;
}
Hoping that my version was out of date, I upgrades to 18.2.
No joy...same exception.