<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HowTo: Excel Export mit ASP.NET MVC und &quot;Render View To String&quot;</title>
	<atom:link href="http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/</link>
	<description>Webdevelopment with ASP.NET MVC, jQuery &#38; the Microsoft Stack</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:16:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Excel/CSV-Export &#252;ber ASP.NET: Encoding / Darstellung von Umlaute &#38; Render View To String mit Razor &#124; Code-Inside Blog</title>
		<link>http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/comment-page-1/#comment-66298</link>
		<dc:creator>Excel/CSV-Export &#252;ber ASP.NET: Encoding / Darstellung von Umlaute &#38; Render View To String mit Razor &#124; Code-Inside Blog</dc:creator>
		<pubDate>Mon, 22 Aug 2011 23:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/#comment-66298</guid>
		<description>[...] andere, sehr simple Möglichkeit habe ich früher mal gebloggt. Im Grunde schickt man Excel einen HTML Tabelle und Excel kann das recht gut darstellen, solange es [...]</description>
		<content:encoded><![CDATA[<p>[...] andere, sehr simple Möglichkeit habe ich früher mal gebloggt. Im Grunde schickt man Excel einen HTML Tabelle und Excel kann das recht gut darstellen, solange es [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neoncyber</title>
		<link>http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/comment-page-1/#comment-49960</link>
		<dc:creator>neoncyber</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/#comment-49960</guid>
		<description>Thanks for the config httpReponse ;)</description>
		<content:encoded><![CDATA[<p>Thanks for the config httpReponse <img src='http://code-inside.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neoncyber</title>
		<link>http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/comment-page-1/#comment-49959</link>
		<dc:creator>neoncyber</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/#comment-49959</guid>
		<description>YOu don&#039;t understand POO of ASP MVC, 

    public class ExcelResult : ActionResult
    {
        public ViewResult _result { get; set; }

        public ExcelResult(ViewResult result)
        {
            _result = result;
        }

        public override void ExecuteResult(ControllerContext context)
        {
            context.HttpContext.Response.AppendHeader(&quot;content-disposition&quot;, &quot;attachment;filename=export.xls&quot;);
            context.HttpContext.Response.ContentType = &quot;application/ms-excel&quot;;
            context.HttpContext.Response.Cache.SetCacheability(HttpCacheability.NoCache);
            _result.ExecuteResult(context);
        }
      }</description>
		<content:encoded><![CDATA[<p>YOu don&#8217;t understand POO of ASP MVC, </p>
<p>    public class ExcelResult : ActionResult<br />
    {<br />
        public ViewResult _result { get; set; }</p>
<p>        public ExcelResult(ViewResult result)<br />
        {<br />
            _result = result;<br />
        }</p>
<p>        public override void ExecuteResult(ControllerContext context)<br />
        {<br />
            context.HttpContext.Response.AppendHeader(&#8220;content-disposition&#8221;, &#8220;attachment;filename=export.xls&#8221;);<br />
            context.HttpContext.Response.ContentType = &#8220;application/ms-excel&#8221;;<br />
            context.HttpContext.Response.Cache.SetCacheability(HttpCacheability.NoCache);<br />
            _result.ExecuteResult(context);<br />
        }<br />
      }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mühsig</title>
		<link>http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/comment-page-1/#comment-36882</link>
		<dc:creator>Robert Mühsig</dc:creator>
		<pubDate>Tue, 02 Mar 2010 09:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://code-inside.de/blog/2010/01/29/howto-excel-export-mit-asp-net-mvc-und-render-view-to-string/#comment-36882</guid>
		<description>Im IE kann es zu Problemen mit dem Excelresult kommen. Wenn man direkt per GET auf die URL des Controllers geht mag der IE das File nicht runterladen.

Lösung des Problems: Diese Zeile entfernen:
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);</description>
		<content:encoded><![CDATA[<p>Im IE kann es zu Problemen mit dem Excelresult kommen. Wenn man direkt per GET auf die URL des Controllers geht mag der IE das File nicht runterladen.</p>
<p>Lösung des Problems: Diese Zeile entfernen:<br />
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

