Thursday, March 22, 2012

Open a PDF in another window/tab

Hi,

I'm using the folowing code to export a Crystal Report directly to browser:
Response.Clear()
cr.ExportToHttpResponse(ExportFormatType.PortableD ocFormat, 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

CCLink 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! |
*************************************************
"news.microsoft.com" <carlos.msm.cruz@.gmail.comwrote in message news:OVe4aUL8HHA.4584@.TK2MSFTNGP03.phx.gbl...
Hi,

I'm using the folowing code to export a Crystal Report directly to browser:
Response.Clear()
cr.ExportToHttpResponse(ExportFormatType.PortableD ocFormat, 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

0 comments:

Post a Comment