This is a migrated thread and some comments may be shown as answers.

type RadGridViewExcelExporter is not defined

10 Answers 291 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brennan
Top achievements
Rank 1
Brennan asked on 30 Sep 2010, 10:58 PM
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?

10 Answers, 1 is accepted

Sort by
0
Brennan
Top achievements
Rank 1
answered on 04 Oct 2010, 05:52 PM
bump!
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 04 Oct 2010, 07:38 PM
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
0
Brennan
Top achievements
Rank 1
answered on 04 Oct 2010, 11:06 PM
Thanks, TelerikData is indeed where this class is located!
0
Cesar
Top achievements
Rank 1
answered on 01 Feb 2020, 12:25 AM

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?

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Feb 2020, 06:04 AM
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
0
Cesar
Top achievements
Rank 1
answered on 03 Feb 2020, 03:03 PM

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

0
Cesar
Top achievements
Rank 1
answered on 03 Feb 2020, 06:30 PM

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

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Feb 2020, 10:51 AM

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.
0
Cesar
Top achievements
Rank 1
answered on 06 Feb 2020, 11:17 PM
Thank's for your assistant.  Could you send me the link to download 2015.2.623 version please?
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Feb 2020, 05:59 AM
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.
Tags
GridView
Asked by
Brennan
Top achievements
Rank 1
Answers by
Brennan
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Cesar
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or