tag:blogger.com,1999:blog-8072824882860488300.post2312323814618545901..comments2023-06-29T14:09:15.914+02:00Comments on The Code Workshop: Offer reports as downloadable PDF documents in your Dynamics Ax 2009 Enterprise PortalThe Ohttp://www.blogger.com/profile/11678269901942645149noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8072824882860488300.post-60874106950031852872010-09-24T14:30:32.014+02:002010-09-24T14:30:32.014+02:00Just thought of this:
If you want to show the PDF ...Just thought of this:<br />If you want to show the PDF in the browser window, just use Response.Redirect and pass the user to a ASP.NET page in which you host the following code (in Page_Load):<br /><br /> FileInfo fi = null;<br /> <br /> fi = new FileInfo("D:\\Customers.pdf");<br /> <br /> if (fi.Exists)<br /> {<br /> Response.Clear();<br /> Response.ContentType = "application/pdf";<br /> Response.Flush();<br /> Response.WriteFile(fi.FullName);<br /> Response.End();<br /> <br /> } <br /><br />Reference:<br />http://paruvella.spaces.live.com/default.aspx?wa=wsignin1.0&sa=555316674The Ohttps://www.blogger.com/profile/11678269901942645149noreply@blogger.com