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

Export to excel and add a title to the page

4 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Inbal
Top achievements
Rank 1
Inbal asked on 15 Jan 2009, 07:17 AM
Hello,

I am using the export to excel component when exporing a dataset.
How can i add a title on top to the excel file which i'm exporing to ?

Thanks,

Inbal

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jan 2009, 07:38 AM
Hello Inbal,

One suggestion to achieve this is by using the Caption property of "MasterTableView". Set the Caption property to desired title and this will be included in the exported file. Hopes this help you.

Thanks,
Shinu.
0
Inbal
Top achievements
Rank 1
answered on 15 Jan 2009, 08:03 AM
Hello Shinu,

Thank you!! it helped.

Inbal
0
Yuvraj
Top achievements
Rank 1
answered on 28 Jan 2009, 01:22 PM
This trick works well but if want to display some more text/information on the next line i am unable to do that.
0
Shinu
Top achievements
Rank 2
answered on 29 Jan 2009, 04:48 AM
Hi Yuvraj,

You can use the CommandItemTemplate of the Grid to display more text/information on the top of the Grid. Set the CommandItemDisplay property to top in the aspx as well.

ASPX:
<MasterTableView  Caption="Title" CommandItemDisplay="Top"  > 
                   <CommandItemTemplate> 
                     You can write more Text/Information here 
                   </CommandItemTemplate> 

Thanks
Shinu
Tags
Grid
Asked by
Inbal
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Inbal
Top achievements
Rank 1
Yuvraj
Top achievements
Rank 1
Share this question
or