NetTalk Central

Author Topic: IE8 Not displaying pdf reports revisited  (Read 7672 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
IE8 Not displaying pdf reports revisited
« on: January 20, 2012, 02:10:16 AM »
Windows7Ultimate 64bit Clarion6.3_9056 NT545
I have established that if I nominate '_blank' as the target then all that happens in IE8 is that the PDF is generated, but nothing displays on screen and the word done appears at the bottom. However if I don't specify '_blank' then the PDF appears in the same browser window.
The obvious problem with this is that when the client is finished looking at the image he tends to press the red X rather than use the back button thereby both throwing him out of the browser and into a frenzy with the same action (talk about efficiency ;-) ).

I would like to limit the use of '_self' to only IE8.
So the question is how?
Any step by step instructions will be followed.

Thanks
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11197
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #1 on: January 20, 2012, 05:43:26 AM »
set target to
CHOOSE(p_web.UserAgent='msie8','_self','_blank')

Cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: IE8 Not displaying pdf reports revisited
« Reply #2 on: January 20, 2012, 06:37:07 AM »
Perfect
Thanks
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #3 on: February 23, 2012, 11:00:15 AM »
Hi Bruce,

Is there a fix that will allow IE8 to use _blank as a target.  I am having multiple clients calling about this problem after upgrading from NT5 to NT6.21.  For the time being, I will use what you mention previous with the CHOOSE option.

Regards...
Alan

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #4 on: February 23, 2012, 12:32:49 PM »
Just an update...

1) I have set target to CHOOSE(p_web.UserAgent='msie8','_self','_blank') but it still runs the report in another window if the browser is IE 8.  I even tried replacing 'msie8' to 'msie 8' but get the same result.

2)  Once the report runs, I get a blank window. But if I highlight the URL line and press enter, then the report displays in the window.  This only happens on machines running XP and IE8.   This report is being called from a button on a browse.  On the General tab, the action is set to "Other" and on the Properties tab, I have set type to "Button" but have also tried it as a "Submit" button as well.  Also, the "Include Row ID field" is checked and "Include Action" is unchecked.

3) I am only seeing this problem if I run the report from a browse.

I still would like the reports to run in their own tab or window using '_blank'.

Any suggestions to resolve this is greatly appreciated.
« Last Edit: February 23, 2012, 12:56:58 PM by Alan Cochran »

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: IE8 Not displaying pdf reports revisited
« Reply #5 on: February 23, 2012, 02:44:05 PM »
Add a trace before your choose statement to find out exactly what is being returned by p_web.UserAgent

This should let you sort out getting it to run in the same window.

If '_blank' was working in NT5 and not NT6 then I would try to compare the code. Of course it could be some internal change but it's worth a look.

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #6 on: February 24, 2012, 01:04:27 AM »
Hi Kevin,

Thanks for the suggestion on running a trace on the embed of the CHOOSE.  It showed that IE8 was being used when my test XP/IE8 machine accessed it.  Just to be safe, I went ahead and did a recompile of the app and rebooted the server.   Now a report that is called from a button on a Browse will open on the same window if using IE8 and other browsers will open a new window/tab.  So for the time being, this will work.  But I would like to have a new window/tab open when a IE8 browser if used.  As I mentioned before, this worked using NT5.

Maybe Capesoft can do an internal test.

Again, thanks...
Alan

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #7 on: March 28, 2012, 12:11:35 PM »
Hi folks...
My customers are still reporting issues when generating a PDF and viewing it on IE8 from a browse.  They get a blank page.

What I have found is when they click the Print button, the URL displays
http://www.watersystems.com:4025/RptFinalBill?__Referer__=http%3A//www.watersystems.com%3A4025/SelectFBCustomer&_bidv_=NI6NkwKp&PressedButton=print_btn

but...

if I run it under IE9, I get in the URL http://www.watersystems:4025/RptFinalBill?_bidv_=NI6NkwKp&PressedButton=print_btn which displays the report correctly.

The way this process works, is they select a resident to process a final bill from the browse, the select button calls a NetWebForm procedure to verify the amounts are correct.  Once they click the Generate button, it runs a source procedure to generate the transactions and then returns back to the NetWebBrowse procedure.  Base on a condition, the Select button is hidden and a Print button appears.  When they press the Print button, it runs the Report (using PDFTools 4.1) procedure  to generate the report, create the saved PDF file and places it under FinalBill folder under the Web folder. 

If anyone has any suggestion, I would appreciate it.  I didn't have this issue with NT5.
Alan

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: IE8 Not displaying pdf reports revisited
« Reply #8 on: March 28, 2012, 01:19:16 PM »
Yeah, I'm experiencing the same thing.  For now, I have been requiring my customers to use IE9, Firefox, or Chrome. 

But, allot of them still run IE8. 

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #9 on: March 30, 2012, 09:42:16 AM »
Don,

It seems the majority of our customers are using XP/IE8.  I hope there will be a fix soon as it will be hard to require them to use some other browser as they have to get permission from their upline folks.  Plus it looks bad on us.

After looking at this app using NT4 and NT5 back from 2010, the report worked fine with IE8.  So it is definitely a NT6 issue.

Alan

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: IE8 Not displaying pdf reports revisited
« Reply #10 on: March 30, 2012, 04:53:50 PM »
It seems the majority of our customers are using XP/IE8.

That's what I'm seeing as well.  Many, many, folks still running XP (and IE8).

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: IE8 Not displaying pdf reports revisited
« Reply #11 on: April 02, 2012, 02:22:09 AM »
Getting this back into the recent post list...
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: IE8 Not displaying pdf reports revisited
« Reply #12 on: April 02, 2012, 02:46:52 AM »
set target to
CHOOSE(p_web.UserAgent='msie8','_self','_blank')

Cheers
Bruce


This worked for me.
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Alan Cochran

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: IE8 Not displaying pdf reports revisited
« Reply #13 on: April 02, 2012, 07:27:41 AM »
Don,

I have that code in as well but it doesn't work for machines running XP with IE8 when running a report from an other button on a netwebbrowse.

Alan
« Last Edit: April 02, 2012, 07:30:26 AM by Alan Cochran »