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

Exporting

3 Answers 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 03 Aug 2015, 04:54 PM

 Okay upgraded to Q2_2015_2_728.

 I have the following code

var exporter = new Telerik.WinControls.UI.Export.SpreadExport.SpreadExport(this.contents);

....

....
exporter.RunExport(fileName);

 Since these are now obsolete, what is the replacement. Documentation is non-existent.

Thanks for the help.

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Aug 2015, 12:14 PM
Hi Albert,

Thank you for writing.

You should use the same method and just add a SpreadExportRenderer instance as a parameter:
GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.radGridView1);
SpreadExportRenderer renderer = new SpreadExportRenderer();
spreadExporter.RunExport(@"..\..\exportedFile.xlsx", renderer);

Thank you for reporting that this is missing in our documentation. We will update it as soon as possible. 

Please let me know if there is something else I can help you with. 

Regards,
Dimitar
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Keith
Top achievements
Rank 1
answered on 24 Aug 2015, 02:05 PM

Hi Dimitar,

I am having trouble setting up my C# windows application to export from the RadGridView.

The demo indicates to declare the following:

ExportToExcelML excelExporter = new ExportToExcelML(this.radGridView1);

I did put in the following namespace:

using Telerik.WinControls.UI.Export;

I am using Visual Studio 2013.  Visual Studio still shows â€‹ExportToExcelML as an unknown type.

I have tried what you suggested above but still shows as an unknown type.

Please help.

Sincerely,

Keith Jackson

0
Dimitar
Telerik team
answered on 25 Aug 2015, 12:30 PM
Hi Keith,

Thank you for writing.

The ExportToExcelML class is used in the old exporter which exports the data as XML. It is contained in the TelerikData assembly. The new spread export functionality is located in the TelerikExport assembly. Detailed information about it can be found here: Spread export.

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Albert
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Keith
Top achievements
Rank 1
Share this question
or