<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>We Heart Code &#187; error</title>
	<atom:link href="http://www.weheartcode.com/category/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weheartcode.com</link>
	<description>A discourse on programming</description>
	<lastBuildDate>Thu, 12 May 2011 23:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>There was an error opening this document. This file cannot be found.</title>
		<link>http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/</link>
		<comments>http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/#comments</comments>
		<pubDate>Mon, 13 Nov 2006 19:08:04 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[error]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/</guid>
		<description><![CDATA[This error sucks. Acrobat Reader 7 throws it when trying to read an inline PDF in IE. Here's how you fix it (in java, though you could do this in another language, point is you have to set your headers like so). response.setHeader&#40;"Pragma", "public"&#41;; response.setDateHeader&#40;"Expires", 0&#41;; response.setHeader&#40;"Cache-Control","must-revalidate, post-check=0, pre-check=0"&#41;; response.setHeader&#40;"Cache-Control","public"&#41;; response.setHeader&#40;"Content-Description","File Transfer"&#41;; Bookmark to:]]></description>
			<content:encoded><![CDATA[<p>This error sucks. Acrobat Reader 7 throws it when trying to read an inline PDF in IE.</p>
<p>Here's how you fix it (in java, though you could do this in another language, point is you have to set your headers like so).</p>
<div class="syntax_hilite">
<div id="java-2">
<div class="java">response.<span style="color: #006600;">setHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Pragma"</span>, <span style="color: #ff0000;">"public"</span><span style="color: #66cc66;">&#41;</span>;<br />
response.<span style="color: #006600;">setDateHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Expires"</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;<br />
response.<span style="color: #006600;">setHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Cache-Control"</span>,<span style="color: #ff0000;">"must-revalidate, post-check=0, pre-check=0"</span><span style="color: #66cc66;">&#41;</span>;<br />
response.<span style="color: #006600;">setHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Cache-Control"</span>,<span style="color: #ff0000;">"public"</span><span style="color: #66cc66;">&#41;</span>;<br />
response.<span style="color: #006600;">setHeader</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Content-Description"</span>,<span style="color: #ff0000;">"File Transfer"</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p></p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/&amp;title=There+was+an+error+opening+this+document.+This+file+cannot+be+found." title="Add 'There was an error opening this document. This file cannot be found.' to Del.icio.us"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/delicious.png" title="Add 'There was an error opening this document. This file cannot be found.' to Del.icio.us" alt="Add 'There was an error opening this document. This file cannot be found.' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/&amp;title=There+was+an+error+opening+this+document.+This+file+cannot+be+found." title="Add 'There was an error opening this document. This file cannot be found.' to digg"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/digg.png" title="Add 'There was an error opening this document. This file cannot be found.' to digg" alt="Add 'There was an error opening this document. This file cannot be found.' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=There+was+an+error+opening+this+document.+This+file+cannot+be+found.&amp;u=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/" title="Add 'There was an error opening this document. This file cannot be found.' to FURL"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/furl.png" title="Add 'There was an error opening this document. This file cannot be found.' to FURL" alt="Add 'There was an error opening this document. This file cannot be found.' to FURL" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/&amp;title=There+was+an+error+opening+this+document.+This+file+cannot+be+found." title="Add 'There was an error opening this document. This file cannot be found.' to reddit"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/reddit.png" title="Add 'There was an error opening this document. This file cannot be found.' to reddit" alt="Add 'There was an error opening this document. This file cannot be found.' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/" title="Add 'There was an error opening this document. This file cannot be found.' to Technorati"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/technorati.png" title="Add 'There was an error opening this document. This file cannot be found.' to Technorati" alt="Add 'There was an error opening this document. This file cannot be found.' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/&amp;title=There+was+an+error+opening+this+document.+This+file+cannot+be+found." title="Add 'There was an error opening this document. This file cannot be found.' to Google Bookmarks"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/google.png" title="Add 'There was an error opening this document. This file cannot be found.' to Google Bookmarks" alt="Add 'There was an error opening this document. This file cannot be found.' to Google Bookmarks" /></a></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://www.weheartcode.com/2006/11/13/there-was-an-error-opening-this-document-this-file-cannot-be-found/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

