NetTalk Central

Author Topic: IE8 Printing to pdf  (Read 3442 times)

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
IE8 Printing to pdf
« 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: IE8 Printing to pdf
« Reply #1 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.

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Printing to pdf
« Reply #2 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

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: IE8 Printing to pdf
« Reply #3 on: March 07, 2012, 04:16:13 PM »
Thank you, the line of code works great.

Rich