1

telerik gridview export to pdf in win forms.

hi i want to get pdfexport from telerik grid and i search on the web and find answer on Telerik gridview export images not working winforms

private void RunExportToPDF(string fileName, ref bool openExportFile)
    {
        GridViewPdfExport pdfExporter = new GridViewPdfExport(this.dataGridView1);
        pdfExporter.RunExport(@"C:\New.pdf", new PdfExportRenderer());
  
    }

but i still have error. any one can help me?? enter image description here

  • Please provide enough code so others can better understand or reproduce the problem. – Community May 02 '22 at 05:01
  • In your screenshot, what does the popup error description say when you hover over the red underline? Have you included the necessary library at the top of RadForm2.cs to make `PdfExportRenderer()` accessible? – Ben Bloodworth May 02 '22 at 05:04
  • hi Ben Bloodworth yes i using necessary namespace , using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Telerik.Data; using Telerik.WinControls.UI; using Telerik.WinControls; using Telerik.WinControls.UI.Export; using TelerikWinFormsApp1.Models; – حمیدرضا بحری May 05 '22 at 14:21

0 Answers0