can't find ExportToExcelML method

6 posts, 1 answers
  1. Cathy Shao
    Cathy Shao avatar
    3 posts
    Member since:
    Jun 2007

    Posted 01 Mar 2011 Link to this post

    I am using RadControls for WinForms Q2 2010 SP2

    I tried to use gridview to export data to Excel.

    I have following namespaces:

    Imports

     

    Telerik.WinControls

     

    Imports

     

    Telerik.WinControls.UI

     

    Imports

     

    Telerik.WinControls.UI.Export

     

    Imports

     

    Telerik.WinControls.Data

    But I can't get ExportToExcelML method to come up when I code

     

     

    Dim

     

    exporter As ExportToExcelML = New ExportToExcelML(Me.gridview)

    Did I miss anything?

     

  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Mar 2011 Link to this post

    Hello,

    It's not immediatly obvious but make sure you also add to your references TelerikData.dll

    for reference, the help topic for export to excelml is here
    Let me know if that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Cathy Shao
    Cathy Shao avatar
    3 posts
    Member since:
    Jun 2007

    Posted 01 Mar 2011 Link to this post

    Yes.  That's it.  Thanks a lot.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Mar 2011 Link to this post

    You're welcome Cathy.
    Please remember to mark as answer
    Thanks
    Richard
  6. Chad
    Chad avatar
    1 posts
    Member since:
    Apr 2012

    Posted 07 Oct 2014 Link to this post

    I am seeing this now.
    Imports Telerik.WinControls.Data
    Imports Telerik.WinControls.UI.Export

    Then this says ExportToExcelIML is not defined:
     Dim exporter As ExportToExcelML = New ExportToExcelML(Me.RadGridView1)
  7. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 13 Oct 2014 Link to this post

    Hello Chad,

    Thank you for writing.

    The export to Excel functionality is located in the TelerikData.dll assembly. You need to include the following namespaces in order to access the types contained in TelerikData:
    • Telerik.WinControls.Data
    • Telerik.WinControls.UI.Export
    Afterwards, you need to import the Telerik.WinControls.UI.Export as it is demonstrated in the attached screenshots.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready