pdf report in a new window ?http://forums.asp.net/t/1380177.aspx/1?pdf+report+in+a+new+window+Thu, 05 Feb 2009 10:54:05 -050013801772915823http://forums.asp.net/p/1380177/2915823.aspx/1?pdf+report+in+a+new+window+pdf report in a new window ? <p>hi,<br> </p> <p>what i want is to open&nbsp; my pdf report in a new window&nbsp; or in the pdf application&nbsp; withou prompt pop window </p> <p>my code looks like : <br> </p> <p>&nbsp;renderedBytes = localReport.Render(<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reportType,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deviceInfo,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out mimeType,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out encoding,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out fileNameExtension,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out streams,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out warnings);<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear();<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = mimeType;<br> // with this instruction i open my report in pdf application but i dont want the prompt window<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachement; filename=liste.&quot; &#43; fileNameExtension);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.BinaryWrite(renderedBytes);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.End(); <br> </p> 2009-02-04T14:37:30-05:002915907http://forums.asp.net/p/1380177/2915907.aspx/1?Re+pdf+report+in+a+new+window+Re: pdf report in a new window ? Use window.open(&quot;1.pdf&quot;, height. . .) browse, you will lots of samples.. 2009-02-04T15:02:16-05:002915934http://forums.asp.net/p/1380177/2915934.aspx/1?Re+pdf+report+in+a+new+window+Re: pdf report in a new window ? <p>&nbsp;that supposes that i have saved the pdf file&nbsp; in my disk but i want just to open the report in a window as new pdf file<br> </p> 2009-02-04T15:13:19-05:002917509http://forums.asp.net/p/1380177/2917509.aspx/1?Re+pdf+report+in+a+new+window+Re: pdf report in a new window ? <p>try using : <font face="Courier New">Response.<b>WriteFile</b> method</font></p> <p><font face="Courier New">refer: <a href="http://dotnetperls.com/Content/Response-WriteFile.aspx"> http://dotnetperls.com/Content/Response-WriteFile.aspx</a></font></p> 2009-02-05T04:57:01-05:002918273http://forums.asp.net/p/1380177/2918273.aspx/1?Re+pdf+report+in+a+new+window+Re: pdf report in a new window ? <p>1-First if you use Report Viewer&nbsp; you can open it in anew window or in the same page and then if you wish you can export it to a pdf file (this is one way to do it ) ,so you can have a preview before exporting it to a pdf file (in my opinion it's better)</p> <p>2- if you use crystal report you can open your report in a pdf file immediatly (creating the pdf containing the report </p> <p>tell what is the way you prefer so i can help you further </p> 2009-02-05T10:54:05-05:00