Hi.
Before using Telerik's RadRichTextBox on a working project, I used Microsoft Silevrlight RichTextBox. Problem was the need to create a mechanism to read a remote docx file with placeholders whos values were replaced by the end user with options from a LightSwitch screen. Process worked like a charm, but then we decide to change that control with Telerik's one. And this is the problem:
I need to load corresponding template upon user selection, in the lightswitch screen. Then, a WCF service reads that docx file, serialize it, and send it to a field in the LS screen. That field (a simple TextBox control) implements TextChanged event, and on that event, updates the RichTextBox parsing as it reads every line from DOCX format (OpenXML) to XAML.
I've tried several ways to implement this same funcionality using Telerik RadRichTextBox to no avail. The idea is:
On LS screen user selects from a dropdown template.
WCF service reads docx template, and populate with values user had chosen.
WCF service then returns a fully docx file, with those values on it, as a byte array to LS.
And finally, and here is my problem: how can I make RadRichTextBox understand that array (a docx file serialized) and shows me in the control XAML code, just like docx?
Regards,
dejavu
Before using Telerik's RadRichTextBox on a working project, I used Microsoft Silevrlight RichTextBox. Problem was the need to create a mechanism to read a remote docx file with placeholders whos values were replaced by the end user with options from a LightSwitch screen. Process worked like a charm, but then we decide to change that control with Telerik's one. And this is the problem:
I need to load corresponding template upon user selection, in the lightswitch screen. Then, a WCF service reads that docx file, serialize it, and send it to a field in the LS screen. That field (a simple TextBox control) implements TextChanged event, and on that event, updates the RichTextBox parsing as it reads every line from DOCX format (OpenXML) to XAML.
I've tried several ways to implement this same funcionality using Telerik RadRichTextBox to no avail. The idea is:
On LS screen user selects from a dropdown template.
WCF service reads docx template, and populate with values user had chosen.
WCF service then returns a fully docx file, with those values on it, as a byte array to LS.
And finally, and here is my problem: how can I make RadRichTextBox understand that array (a docx file serialized) and shows me in the control XAML code, just like docx?
Regards,
dejavu