<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Migrating from Cold Fusion to ASP.NET</title><link>http://forums.asp.net/49.aspx</link><description>Discuss moving from Cold Fusion to ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Excell Spreed Sheet on the fly</title><link>http://forums.asp.net/thread/2947082.aspx</link><pubDate>Tue, 17 Feb 2009 14:43:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2947082</guid><dc:creator>akulla3D</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2947082.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=49&amp;PostID=2947082</wfw:commentRss><description>Okay, I found this.

If you are using Response.write for your output. (This is how I did it) Then the following code before you loop through the table works like the cf code I posted.

Response.ContentType = &amp;quot;application/vnd.ms-excel&amp;quot;;
Response.AddHeader(&amp;quot;content-disposition&amp;quot;,&amp;quot;attachment;filename=myExcellspredsheet.xls&amp;quot;);

Roger</description></item><item><title>Re: Excell Spreed Sheet on the fly</title><link>http://forums.asp.net/thread/2940725.aspx</link><pubDate>Fri, 13 Feb 2009 21:50:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2940725</guid><dc:creator>Mikesdotnetting</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2940725.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=49&amp;PostID=2940725</wfw:commentRss><description>&lt;p&gt;You can export a GridView to Excel: &lt;a href="http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html"&gt;http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Excell Spreed Sheet on the fly</title><link>http://forums.asp.net/thread/2940346.aspx</link><pubDate>Fri, 13 Feb 2009 18:39:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2940346</guid><dc:creator>akulla3D</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2940346.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=49&amp;PostID=2940346</wfw:commentRss><description>Okay, sorry if this is not the right place, but I have a question about Excel spreadsheets.

I work for a pretty big CF House in DC Metro, we create/maint. multiple data collection systems for various Fed Agencies.  I am creating a small reporting intranet in .NET as per new requirements.  Could one of you Guru&amp;#39;s help me out with the below.

Thanks in advance.


In, CF you can create Excel Spreadsheets from and html table with column headers as the Cell header.

All you have to to is output the table to the page, and wrap in with the following call


 

This will create a excel spreadsheet for a client to download.  Now heres my question.

Is it this easy in C# .NET or is there a simple object to call to get this done?  Or, am I doomed to some work around for this.

Thanks</description></item></channel></rss>