Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting of Excel in browser

Status
Not open for further replies.

IanS1

Programmer
Oct 19, 2001
2
GB
I have a page that I'm displaying in Excel, using
<%response.ContentType = &quot;application/vnd.ms-excel&quot; %>.
I need to know how to format the spreadsheet, to show gridlines, specify word-wrap on columns and the like.

Rather than post a lot of code, I'll use this example from W3schools (
<%response.ContentType=&quot;application/vnd.ms-excel&quot;%>
<html>
<body>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
</table>
</body>
</html>

Go gentle on me - this is my first post (and I don't claim to be anything other than a beginner in ASP !).
Many thanks in anticipation. :)
 
Thanks for your help, RushiShroff.
On the supplied site is there is an index of helpful code. On that index, the reference to &quot;Output to MSExcel&quot; ( contains a Response.ContentType and is similar to other examples on this forum. The reference &quot;ASP to MSWord&quot; ( is similar again, but doesn't appear to do any formatting. The one I think you're pointing me to is &quot;Create XL from Form Input&quot; ( which mentions the gridlines, but I don't get the gridlines displayed when I try the example. Is there something I'm doing wrong with that example, or am I even looking in the right place?
Any further guidance greatly welcome!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top