Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Export Gridview to Excel question

Author  Topic 

JJ297
Aged Yak Warrior

940 Posts

Posted - 2009-03-11 : 10:16:55
Is this possible...

To add a title to the Excel document that was converted from a Gridview?

Here's my code I have a button on the page.

Protected Sub btnExportGrid_Click(ByVal sender As Object, ByVal e As System.EventArgs)
GridViewExportUtil.Export("MonthTrend.xls", GridView1)
End Sub
   

- Advertisement -