Export RadGridView to Excel

2 posts, 0 answers
  1. ISB-developer
    ISB-developer avatar
    21 posts
    Member since:
    Jul 2011

    Posted 18 Oct 2011 Link to this post

    Hi,
    I have a problem in exportin data from one RadGridView to Excel.

    I am usig the method bellow but I receive an error: 


    Dim
    excelExporter As New ExportToExcelML(Me.adminGridView)  

    excelExporter.SheetName = "SituatieGala"  

    excelExporter.ExportVisualSettings = 

    True  

    excelExporter.RunExport(fs.FileName)

    When I am trying to create the variable excelExporter I receive the attached jpg's error!

    Also I have made the necesary imports:

     

    Imports Telerik.WinControls  

    Imports Telerik.Data Imports 

    Telerik.WinControls.UI.Export 

    Imports System.IO

     

  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 20 Oct 2011 Link to this post

    Hi,

    Thank you for writing.

    ExportToExcelML class is located in TelerikData.dll. Please make sure that you have referenced that assembly in your project. 

    Hope this helps. Let me know if you have any additional questions.

    Best wishes,
    Martin Vasilev
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top