NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: RichBowman on March 06, 2012, 04:49:25 AM

Title: IE8 Printing to pdf
Post by: RichBowman on March 06, 2012, 04:49:25 AM
I have a report that I print to pdf and display. I have specified '_blank' in the Target Frame field of the template. Firefox works -- it opens the pdf in a new tab. IE8 does not. It opens a new instance of IE, displays the pdf progress bar, but does not display the pdf. I would like it to open the pdf in a new tab like Firefox does. Any ideas?

Using C8.0.8778 and NT 6.25

Thank you,

Rich
Title: Re: IE8 Printing to pdf
Post by: kevin plummer on March 06, 2012, 02:51:07 PM
This is a known IE8 problem. There is a post on this NG and the solution was to detect the browser and change the target to _self if IE8 was detected.
Title: Re: IE8 Printing to pdf
Post by: Alan Cochran on March 07, 2012, 04:48:53 AM
I didn't have this problem in NT5 but once I converted my app to NT6, I was having the same issue that you came across.  I have placed the following in the Target Frame under the On-Click tab to resolve the issue:

CHOOSE(p_web.UserAgent='msie8','_self','_blank')

HTH...
Alan
Title: Re: IE8 Printing to pdf
Post by: RichBowman on March 07, 2012, 04:16:13 PM
Thank you, the line of code works great.

Rich