I am perusing the sample on Exporting a document to Word and I see this code:
else if ("TypeDocx".Equals(fileType)) {
this.xamRichTextEditor1.Document.SaveToWord(fs);
}
But I cannot find any method SaveToWord on the RichTextDocument class. All I have is .Save and .SaveToPlainText, as shown here:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.Documents.RichTextDocument.v14.1~Infragistics.Documents.RichText.RichTextDocument_members.html
Can anyone tell me why the SaveToWord method is listed in the 14.1 samples? Is it a mistake, or are there different versions of the 14.1 library? Thanks.
Hello Adam,
You can see the SaveToWord method here:
http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=InfragisticsWPF4.Documents.RichTextDocument.Word.v14.1~Infragistics.Documents.RichText.WordSerializationProviderExtensions~SaveToWord.html
Regards,
Hi Svetla, thanks for the quick reply.
In the sample I am looking at:
http://ko.infragistics.com/samples/wpf/richtext-editor/export-content
There is no mention of the class you linked to. The SaveToWord() method belongs directly to the Infragistics.Documents.RichText.RichTextDocument class. So I don't know how to access the class you mentioned or its methods. Is there any sample available that uses the class you linked to?
Adam,
It sounds like your missing a using statement and/or reference to one of our namespaces/assemblies.
Please make sure your code behind includes the following:
using Infragistics.Documents.RichText; using Infragistics.Samples.Framework;
Let me know if you have any questions.
Yeah I figured it out, thanks.
Have you resolved the issue? Let me know if you have any additional questions.
Never mind... found it.
I am using Infragistics.Documents.RichText. But not Infragistics.Samples.Framework... when I try to use that, I get an error that Samples does not exist in the namespace. And if I try to use Infragistics.Documents.RichText.Word, I get the same error.... cannot be found in the namespace.