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
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
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?
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
I added Telerik.WinControls.Data and Telerik.WinControls.UI.Export. references, but the issue continues.
Hello, I did exactly why the links you sent me explain, but I have the same error. I am using 2014 version.
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
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