Advertisement

02.21.2008 at 03:10AM PST, ID: 23180686
[x]
Attachment Details

How to Freeze the First row of the Excel after export from ASPX page. (Report).

Asked by AkhilBMin in Programming for ASP.NET, Visual Studio .NET 2005, .NET Framework 2.0

Tags: .Net 2005,ASP.Net, VB.Net, 2005, Export HTMLTable to Excel FIle (Report)

Hello,
I am creating an HTML table and creating an report to Excel..
Which I did successfully..
Now one thing I need to do is after the export to Excel.. I want the first row of the excel should be get freeze..
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
HttpContext.Current.Response.Clear()
            HttpContext.Current.Response.Charset = ""
            HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"
            Dim stringWrite As New System.IO.StringWriter
            Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
            tbl.RenderControl(htmlWrite)
           HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=someFile.xls")
[+][-]02.21.2008 at 06:44PM PST, ID: 20954153

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, Visual Studio .NET 2005, .NET Framework 2.0
Tags: .Net 2005,ASP.Net, VB.Net, 2005, Export HTMLTable to Excel FIle (Report)
Sign Up Now!
Solution Provided By: Rejojohny
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.27.2008 at 06:58AM PDT, ID: 21221365

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 07:40AM PDT, ID: 21221851

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2008 at 05:21AM PDT, ID: 21438702

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628