I am trying to save the results of mail merge as a PDF, but I am getting a compiler error.
cannot convert from RadDocument to RadFixedDocument
Is there a way around it? Here's my code
using (SaveFileDialog dialog = new SaveFileDialog()){ dialog.Filter = "PDF (*.pdf)|*.pdf"; dialog.FilterIndex = 2; dialog.RestoreDirectory = true; if (dialog.ShowDialog() == DialogResult.OK) { var provider = new PdfFormatProvider(); radRichTextEditor1.Document.MailMergeDataSource.ItemsSource = LetterService.GetEmployersMailMergeSource(); using (Stream output = File.Create(dialog.FileName)) { //error here provider.Export(radRichTextEditor1.Document.MailMerge(), output); } }}
