Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi,
 
Can anybody help me with my problem.

I've managed to create and open excel file from asp.net but
my problem is that when it open, the gridlines of the excel file
are hidden.
 
How can i automatically show the gridlines from asp.net using vb?
 
thanks,
 
Hernan
Posted 18-Dec-12 4:41am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

ASP.NET ShowGridLines Property
ASP.NET ShowGridLines Property this property is set as FALSE by defalult and the grid lines are not displayed.
To show the grid lines the property must be set as TRUE.
ASP.NET ShowGridLines Property[^]
  Permalink  
v2
Comments
Hernan K. Cabrera at 18-Dec-12 11:06am
   
Hi Abhisnek,
 
I think showgridlines is not applicable for me.
 
Response.Clear
Response.AppendHeader("Content-Disposition", "attachment; filename="testing.xls")
Reponse.ContentType = "application/vnd.ms-excel"
Response.Buffer = true
 
dim content as new stringwriter
 
' Codes to put data to the stringwriter (content)
 
Response.Write(content)
Response.End()
 

With this code, i can write and show the excel file but the problem is that
the gridlines of the excel file are hidden.
 
What should i do?
 
thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 400
1 Gihan Liyanage 238
2 Sergey Alexandrovich Kryukov 150
3 ChauhanAjay 120
4 syed shanu 110
0 Sergey Alexandrovich Kryukov 9,021
1 OriginalGriff 7,941
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100