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

Export Multiple Gridview to single Excel Sheet with Multiple sheet

4 Answers 672 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Smith
Top achievements
Rank 1
Smith asked on 14 Jun 2012, 08:36 AM
Hello
I want to export data from multiple RadGridView to a single Excel file with multiple sheet. What I tried now it can export only 1 gridview to 1 file, if I try to export to same file, it was overwritten.

I did a search and found that it can't be done during last year. not sure what is the current status now.

http://www.telerik.com/community/forums/winforms/gridview/export-to-excel-with-gridview.aspx


Could anyone provide me an example please?

Best Regards,
Smith

4 Answers, 1 is accepted

Sort by
0
Smith
Top achievements
Rank 1
answered on 15 Jun 2012, 10:52 AM
0
Accepted
Ivan Petrov
Telerik team
answered on 18 Jun 2012, 06:15 AM
Hi Smith,

Thank you for writing.

This functionality is not supported by the ExportToExcelML functionality. We have added this as a feature request into our Public Issue Tracking System - PITS. You can add your vote/comment on the following link - PITS Feature. If there are many users that require this feature, we will consider it when we make our future development plans.

I hope this will be useful. Should you have further questions, I would be glad to help.
 
Kind regards,
Ivan Petrov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Agila
Top achievements
Rank 1
answered on 22 Nov 2017, 10:08 AM

Hello Team,

Is there any updates for this functionality??

Currently, we are using ExportToXlsx method to perform excel export. Is there any possibility to export to multiple sheet from a Rad GridView.

Please update with some examples.

Thank you.

0
Hristo
Telerik team
answered on 22 Nov 2017, 11:57 AM
Hello Agila,

Thank you for writing.

You can use the GridViewSpreadExport class which utilizes the SpreadProcessing libraries exporting natively to Excel. The spread export object exposes and FileExportMode property and you can set it so that you export multiple grids in a single file each being on a separate sheet: 
GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.radGridView1);
spreadExporter.FileExportMode = FileExportMode.NewSheetInExistingFile;

Please check the following documentation article providing detailed information: https://docs.telerik.com/devtools/winforms/gridview/exporting-data/spread-export.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Smith
Top achievements
Rank 1
Answers by
Smith
Top achievements
Rank 1
Ivan Petrov
Telerik team
Agila
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or