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.
Yeah I figured it out, thanks.
Adam,
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.
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.