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

can't find ExportToExcelML method

5 Answers 724 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cathy Shao
Top achievements
Rank 1
Cathy Shao asked on 01 Mar 2011, 06:12 PM
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?

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 01 Mar 2011, 06:18 PM
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
0
Cathy Shao
Top achievements
Rank 1
answered on 01 Mar 2011, 06:24 PM
Yes.  That's it.  Thanks a lot.
0
Richard Slade
Top achievements
Rank 2
answered on 01 Mar 2011, 06:28 PM
You're welcome Cathy.
Please remember to mark as answer
Thanks
Richard
0
Chad
Top achievements
Rank 1
answered on 07 Oct 2014, 08:37 PM
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)
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Oct 2014, 06:20 AM
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.

 
Tags
GridView
Asked by
Cathy Shao
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Cathy Shao
Top achievements
Rank 1
Chad
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or