Hi,
We are just adding a Feed Back Form and we want to add Infragistics Rich Text Editor. In this Container need to add Rich text Content editing like MS Word and save all data in database as well. Please guide us.
We are trying to add RichText Editor but in XAML Text like below
ClipboardSerializationProviders are not find in XAMRichText Editor. We have added all Namespace related to rich text editor.
Please let us aware.
Thanks
Hello prikanwar,
Currently the xamRichTextEditor does not include a ribbon with controls for content editing. Such functionality is left for the application logic. You may see different content editing controls implementations in the WPF Samples Browser:
xamRichTextEditor > Display > CustomizationsxamRichTextEditor > Editing & Selection > Clipboard SupportxamRichTextEditor > Editing & Selection > Content EditingxamRichTextEditor > Editing & Selection > Find and ReplacexamRichTextEditor > Editing & Selection > Undo / Redo
You may also look at the IG Word application samples which is demonstrating how to build an application similar to MS Word using the Infragistics controls and also following the MVVM pattern:http://ko.infragistics.com/samples/wpf/application-samples
Please let me know, if I can be of any further assistance on the matter.
Sincerely,Radko KolevSenior Software Developer
Hello,
Thanks for your support. I have already added
InfragisticsWPF4.Documents.RichTextDocument.Rtf.v16.2InfragisticsWPF4.Documents.RichTextDocument.Word.v16.2
after adding above dll and restart the application then its working fine. I have one more query is there any property in Rich text editor to show header as word document. Something like below screen.
To be able to export the xamRichTextEditor document's content in RTF or MS Word format you need to do the following:
1. Add reference to the following assemblies:InfragisticsWPF4.Documents.RichTextDocument.Rtf.v16.2InfragisticsWPF4.Documents.RichTextDocument.Word.v16.2
2. Add the following namespace in your code:using Infragistics.Documents.RichText(at this point you should be able to use the export methods like RichTextDocument.SaveToRtf or RichTextDocument.SaveToWord)
3. You can use the following code to obtain the document's content in a format of your choice:MemoryStream ms = new MemoryStream();this.xamRichTextEditor1.Document.SaveToRtf(ms); // or SaveToWord if need MS Word formatms.Position = 0;StreamReader sr = new StreamReader(ms);string docContent = sr.ReadToEnd();