I am currently working on a SilverLight project using the Syncfusion.DocIo.Silverlight libraries. One of the project requirements is the need to print to Word the data that a user has input to a Silverlight form. Some of the form fields are rich text controls, the content of which is often times html. I am using a Word document as a template and I'm simply replacing the content of bookmarks within the template. I cannot figure out how to get write the html to the new Word document so that it renders as html (as opposed to a long string of tags like the following). Any help would be greatly appreciated.
dfh
here's a bit of the code...
const string template = "TotalSupport;component/Resources/Templates/TotalSupportPrintTemplate.docx";
var uri = new Uri(template, UriKind.Relative);
var sr = Application.GetResourceStream(uri);
var document = new WordDocument(sr.Stream, FormatType.Docx);
var bn = new BookmarksNavigator(document);
bn.MoveToBookmark("TicketNumber");
bn.ReplaceBookmarkContent(ViewModel.Data.TicketNumber ?? string.Empty, false);