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

Export RadGridView to Excel

1 Answer 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ISB-developer
Top achievements
Rank 2
ISB-developer asked on 18 Oct 2011, 04:45 PM
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

 

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 20 Oct 2011, 10:05 AM
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.

Tags
GridView
Asked by
ISB-developer
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Share this question
or