Search code examples
c#imagewinformsexporttelerik-grid

Telerik gridview export images not working winforms


I am trying to export the following gridview (winforms project) with Telerik export library:

enter image description here

Output:

enter image description here

Code:

            ExportToPDF pdfExporter = new ExportToPDF(this.SystemGridView);
            pdfExporter.FileExtension = "pdf";
            pdfExporter.ExportVisualSettings = true;
            pdfExporter.HiddenColumnOption = HiddenOption.DoNotExport;
            pdfExporter.PdfExportSettings.EnableCopy = true;
            pdfExporter.RunExport(filename);

It's possible to export images with this library? I've found a link, but it's outdated.

Thank you!


Solution

  • Found:

    GridViewPdfExport pdfExporter = new GridViewPdfExport(this.radGridView1);
    pdfExporter.RunExport(@"C:\New.pdf", new PdfExportRenderer());
    

    Link