type RadGridViewExcelExporter is not defined

11 posts, 1 answers
  1. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 30 Sep 2010 Link to this post

    Hello,

    When I try to instantiate a new RadGridViewExcelExporter I get a type is not defined error.  I have the Interop assemblies referenced and imported as well as:

    Imports Telerik.WinControls.Data
    Imports Telerik.WinControls.UI.Export

    Has the location of the Exporter changed since the documentation was written?
  2. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 04 Oct 2010 Link to this post

    bump!
  3. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 04 Oct 2010 Link to this post

    Hello Brennan,

    Please add a reference to TelerikData in your project and everything should be OK, i remembered reading somewhere that they moved everything data related to TelerikData as one of the major changes in Q2 2010 i think.

    Please let me know if there is anything else i can do to help,

    Best Regards,
    Emanuel Varga
  4. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 04 Oct 2010 Link to this post

    Thanks, TelerikData is indeed where this class is located!
  5. Cesar
    Cesar avatar
    10 posts
    Member since:
    May 2019

    Posted 31 Jan Link to this post

    I have read the solutions but none function to me. Could you please tell me exactly what I have to do in my code in order to solve this issues?

     

  6. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3625 posts

    Posted 03 Feb Link to this post

    Hello, Cesar,   

    The CSV export 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

    Additional information is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/export-to-csv 

    However, I would like to note that GridViewSpreadExport utilizes our RadSpreadProcessing library to export the content of RadGridView to xlsx, csv, pdf and txt formats. This article will explain in detail the SpreadExport abilities and will demonstrate how to use it: https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/spread-export 

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Greetings,
    Dess | Tech Support Engineer, Sr.
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Cesar
    Cesar avatar
    10 posts
    Member since:
    May 2019

    Posted 03 Feb in reply to Dess | Tech Support Engineer, Sr. Link to this post

    I added Telerik.WinControls.Data  and  Telerik.WinControls.UI.Export. references, but the issue continues.

  8. Cesar
    Cesar avatar
    10 posts
    Member since:
    May 2019

    Posted 03 Feb in reply to Cesar Link to this post

    Hello, I did exactly why the links you sent me explain, but I have the same error.  I am using 2014 version.

     

  9. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3625 posts

    Posted 04 Feb Link to this post

    Hello, Cesar,   

    Since GridViewSpreadExport is using the RadSpreadProcessing Library you need to reference the following assemblies as well:

    TelerikExport
    Telerik.Windows.Documents.Core
    Telerik.Windows.Documents.Fixed
    Telerik.Windows.Documents.Spreadsheet
    Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml
    Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf
    Telerik.Windows.Zip

    Following the provided code snippet on your screenshot, I have prepared a sample project for your reference. Note that the code is applicable for Q2 2015 (version 2015.2.623). Feel free to upgrade to at least this version in order to benefit from all the export functionalities. 

    In general, we highly recommend our customers to use the exporters that utilize the Document Processing libraries as they provide very features-rich functionality:

    https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/spread-export    

    https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/export-to-pdf 

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  10. Cesar
    Cesar avatar
    10 posts
    Member since:
    May 2019

    Posted 06 Feb Link to this post

    Thank's for your assistant.  Could you send me the link to download 2015.2.623 version please?
  11. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3625 posts

    Posted 06 Feb Link to this post

    Hello, Cesar,   

    Please refer to the following help article demonstrating how to download the product files from your Telerik account: https://docs.telerik.com/devtools/winforms/installation-and-upgrades/download-product-files 

    Please note that if you do not see the desired version you can contact our sales team and they will enable the version for download: sales@telerik.com

    Should you have further questions please let me know.

     

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top