DocIo in Silverlight - insert or append html

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);



1 Reply

PR Poornima R Syncfusion Team February 22, 2011 09:22 AM UTC

Hi David,


Thank you for your interest in Syncfusion Products.

Currently Essential DocIO does not support following conversion part in Silverlight application.
1. Html to Doc
2. Doc to Html
3. Doc to Pdf
4. Doc to Rtf
5. Rtf to Doc

Hence the Html content that comes from RTE cannot be appended to the word document using AppendHtml() or InsertXHtml() method in Silverlight application. We have already logged this as a feature request. We do not have any immediate plan to implement this feature.

Please let us know if you have any questions.

Regards,
Poornima



Loader.
Up arrow icon