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

Exporting radGridView

3 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ASG
Top achievements
Rank 1
ASG asked on 28 Feb 2011, 08:17 PM
2 Questions:

1. How can a progress bar be implemented with any of the exporters?

2. When I use ExportToExcelML it always exports the file as a .xls instead of xml.  Nowhere in my code is xls mentioned and I explicitly state it should be an xml file... what gives?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 01 Mar 2011, 09:35 AM
Hello ck,

I will try to prepare a demo application for you that should fit your requirements, meanwhile please take a look at the following video tutorial:Export to Excel with the RadGridView for WinForms

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Martin Vasilev
Telerik team
answered on 03 Mar 2011, 02:57 PM
Hello Charles,

You can implement progress bar through ExcelCellFormatting. This event has thrown for every exported cell element.

As to your second question, you should use FileExtension property to specify the extension:
ExportToExcelML excelExporter = new ExportToExcelML(radGridView);
excelExporter.FileExtension = "xml";

Do not hesitate to write back if you have any additional questions.

Greetings,
Martin Vasilev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
ASG
Top achievements
Rank 1
answered on 04 Mar 2011, 02:07 AM
Much appreciated - Thanks Martin
Tags
GridView
Asked by
ASG
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Martin Vasilev
Telerik team
ASG
Top achievements
Rank 1
Share this question
or