Click here to Skip to main content
15,991,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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[^]
 
Share this answer
 
v2
Comments
Hernan K. Cabrera 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900