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

[Solved] How to add footer during Excel Export !

3 Answers 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kannan
Top achievements
Rank 1
Kannan asked on 11 Nov 2009, 06:27 AM
Hi,

I'm using Telerik GridView. I'm exporting the grid data to excel by calling gridView.ToHtml();

This exports the data which is displayed in the grid.

Apart from this I need to add few more rows having some text. Is it possible to do so ?

If so please let me know. Thank You !

Thanks & Regards,
Kannan

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 11 Nov 2009, 10:08 AM
Hello Kannan T,

The GridViewDataControl.ToHtml() method returns a string with the HTML. Add the few rows having some text at the end of this string.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kannan
Top achievements
Rank 1
answered on 11 Nov 2009, 01:28 PM
Hi Ross,

Thanks. I hope you mean by adding few more rows using <tr><td></td></td> inside <table> ?

This is fine. But Is it possible to export the grid in excel format like Microsoft Excel interop do? Because I need to add data in 1 or more work sheets.

Kindly let me know how to do this in telerik ?

Thanks & Regards,
Kannan
0
Vlad
Telerik team
answered on 11 Nov 2009, 01:29 PM
Hi,

Currently only HTML and ExcelML formats are supported.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kannan
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Kannan
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or