This question is locked. New answers and comments are not allowed.
I must be missing something simple, but I'm trying to export a document the way it is on many help files:
using (Stream output = dialog.OpenFile())
{
PdfFormatProvider pdf = DocumentFormatProvidersManager.GetProviderByExtension("pdf") as PdfFormatProvider;
pdf.Export(document,output);
}
But it's not finding the Export function. The intellisense will get pdf.Import, but not Export. I'm pretty sure I have all the references, (Documents, Documents.Fixed, Documents.FormatProviders.Pdf) I get the error below.
I'm getting the error:
Error 9 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider' does not contain a definition for 'Export' and no extension method 'Export' accepting a first argument of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider' could be found (are you missing a using directive or an assembly reference?)
It also can't resovle DocxFormatProvider
using (Stream output = dialog.OpenFile())
{
PdfFormatProvider pdf = DocumentFormatProvidersManager.GetProviderByExtension("pdf") as PdfFormatProvider;
pdf.Export(document,output);
}
But it's not finding the Export function. The intellisense will get pdf.Import, but not Export. I'm pretty sure I have all the references, (Documents, Documents.Fixed, Documents.FormatProviders.Pdf) I get the error below.
I'm getting the error:
Error 9 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider' does not contain a definition for 'Export' and no extension method 'Export' accepting a first argument of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider' could be found (are you missing a using directive or an assembly reference?)