<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Create Excel .xls files with ASP</title>
	<atom:link href="http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/</link>
	<description>A web, technology, programming and SEO blog by Justin Cook</description>
	<pubDate>Fri, 21 Nov 2008 09:22:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Valeda</title>
		<link>http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/#comment-144852</link>
		<dc:creator>Valeda</dc:creator>
		<pubDate>Mon, 08 Sep 2008 12:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/#comment-144852</guid>
		<description>Do you know if there is a way to force the worksheet to be 'Sheet1'?</description>
		<content:encoded><![CDATA[<p>Do you know if there is a way to force the worksheet to be &#039;Sheet1&#039;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Bossie</title>
		<link>http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/#comment-66658</link>
		<dc:creator>Peter Bossie</dc:creator>
		<pubDate>Mon, 17 Mar 2008 00:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2006/11/21/create-excel-xls-files-with-asp/#comment-66658</guid>
		<description>Took mine just one step further.  My manager wanted the spreadsheet to have a pre-defined name which included the current date (for example, let's say something like "HardwareInventory-2008-03-16.xls").  Pretty simple to do:

Dim dtDateStamp
dtDateStamp = now()
Dim strFileName
strFileName = "HardwareInventory-" &#38; year(dtDateStamp) &#38; "-" &#38; month(dtDateStamp) &#38; "-" &#38; day(dtDateStamp)
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "filename="&#38;strFileName&#38;".xls"</description>
		<content:encoded><![CDATA[<p>Took mine just one step further.  My manager wanted the spreadsheet to have a pre-defined name which included the current date (for example, let&#039;s say something like &#034;HardwareInventory-2008-03-16.xls&#034;).  Pretty simple to do:</p>
<p>Dim dtDateStamp<br />
dtDateStamp = now()<br />
Dim strFileName<br />
strFileName = &#034;HardwareInventory-&#034; &amp; year(dtDateStamp) &amp; &#034;-&#034; &amp; month(dtDateStamp) &amp; &#034;-&#034; &amp; day(dtDateStamp)<br />
Response.ContentType = &#034;application/vnd.ms-excel&#034;<br />
Response.AddHeader &#034;Content-Disposition&#034;, &#034;filename=&#034;&amp;strFileName&amp;&#034;.xls&#034;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.159 seconds -->
