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

Export to excel with footer Notes

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Murugesan Sivathanu
Top achievements
Rank 1
Murugesan Sivathanu asked on 09 Dec 2011, 02:29 AM
Hi,

I am working on Radgrid - Export to Excel feature. My user asked me to export the radgrid data with the following footer notes on the exported excel sheet. Could you please help us how to accomplish this requirment.

"FOR INTERNAL USE ONLY. ABC Company PROPRIETARY. "


Thank you

Regards,
Muru

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 09 Dec 2011, 06:36 AM
Hello Muru,

protected void RadGrid1_GridExporting(object sender, GridExportingArgs e)
   {
       e.ExportOutput = e.ExportOutput.Replace("</body>","<div style=\"color:Red;\">Your notification comes here</div></body>");
   }


Thanks,
Jayesh Goyani
0
Murugesan Sivathanu
Top achievements
Rank 1
answered on 16 Jan 2012, 01:40 AM
Jayesh,

Thank you so much. Today only I checked your answer. Its really worked well.

Regards,
Muru
Tags
Grid
Asked by
Murugesan Sivathanu
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Murugesan Sivathanu
Top achievements
Rank 1
Share this question
or