Open a PDF in another window/tab

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hi,

I'm using the folowing code to export a Crystal Report directly to browser:
Response.Clear()
cr.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "Filename")
Response.End()

The problem is that (at least with IE7) the pdf appears on the same page and the «back» browser button keeps disabled.
I realy would like the pdf file to be opened in another browser window (or antother tab in IE7) but I don't know how.

Could you help me please?!

Thanks in advance

CC
 
Link to another form and feed the PDF-creation parameters via the querystring. You can then create the PDF file without problem.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box! |
*************************************************
Hi,

I'm using the folowing code to export a Crystal Report directly to browser:
Response.Clear()
cr.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "Filename")
Response.End()

The problem is that (at least with IE7) the pdf appears on the same page and the «back» browser button keeps disabled.
I realy would like the pdf file to be opened in another browser window (or antother tab in IE7) but I don't know how.

Could you help me please?!

Thanks in advance

CC
 
Back
Top