BUG Problem PDF file reading in some IE6's 
Author Message
 BUG Problem PDF file reading in some IE6's

Hi all,

There seems to be a problem in the following case:
IE 6.0.2600.0000  with Q321232, on Win2K client
so
a PDF file called from within a link to an asp file works fine for the client browser.
a PDF file called from within a function call to the same asp file works not fine for SOME IE6 browsers and doesn't want to open the PDF file automatically. The "open" button even is disabled. When the client wants to "save" the file he gets the following error: Internet explorer cannot download document.asp from www.site.com. Internet Explorer was not able to open the Internet site. The requested site is either unavailable or cannot be found. Please try again later.

works fine in (all) cases:
<a href="/_downloads/document.asp" target="_blank">PDF file</a>

doesn't work well on some IE6 browsers:
<table>
<tr onclick="wfcWindowOpen('/_downloads/document.asp')">
     <td>PDF file</td>
</tr>
</table>

where the function wfcWindowOpen is:
function wfcWindowOpen(psURL, psName) {
if (!psURL) return
window.setTimeout("window.open('" + psURL + "'" + (psName? ",'" + psName + "'": "") + ")",10)

Quote:
}

adding '_blank' to the function call in the <tr> doesn't help !

What is wrong with the function call approach ?
Why only for some IE6 browsers ?

Remark: the IE6 browsers with the PDF problem do not have any problem with .doc or .xls files ! (<grin>). We first tought the course was the PDF reader !

Thanks for any explanation
Joost Devos



Tue, 08 Feb 2005 04:09:08 GMT  
 BUG Problem PDF file reading in some IE6's

I am using redirection on the server. That opens a PDF file in a new window for all users with IE 6.0 without any problem. Make sure they have latest version (5.05) of PDF Reader.

  Hi all,

  There seems to be a problem in the following case:
  IE 6.0.2600.0000  with Q321232, on Win2K client
  so
  a PDF file called from within a link to an asp file works fine for the client browser.
  a PDF file called from within a function call to the same asp file works not fine for SOME IE6 browsers and doesn't want to open the PDF file automatically. The "open" button even is disabled. When the client wants to "save" the file he gets the following error: Internet explorer cannot download document.asp from www.site.com. Internet Explorer was not able to open the Internet site. The requested site is either unavailable or cannot be found. Please try again later.

  works fine in (all) cases:
  <a href="/_downloads/document.asp" target="_blank">PDF file</a>

  doesn't work well on some IE6 browsers:
  <table>
  <tr onclick="wfcWindowOpen('/_downloads/document.asp')">
       <td>PDF file</td>
  </tr>
  </table>

  where the function wfcWindowOpen is:
  function wfcWindowOpen(psURL, psName) {
  if (!psURL) return
  window.setTimeout("window.open('" + psURL + "'" + (psName? ",'" + psName + "'": "") + ")",10)
  }

  adding '_blank' to the function call in the <tr> doesn't help !

  What is wrong with the function call approach ?
  Why only for some IE6 browsers ?

  Remark: the IE6 browsers with the PDF problem do not have any problem with .doc or .xls files ! (<grin>). We first tought the course was the PDF reader !

  Thanks for any explanation
  Joost Devos



Tue, 08 Feb 2005 08:46:05 GMT  
 BUG Problem PDF file reading in some IE6's
What did you do in the ASP file? If you don't use ASP to return the pdf
file, will it work? (I mean your parameter for the window.open directly
points to a pdf file)

Regards,
Gang Guo
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com



Tue, 08 Feb 2005 15:35:20 GMT  
 BUG Problem PDF file reading in some IE6's
I stream the file (using ADO) from within the asp file as follows
<%
Response.ContentType="application/pdf"
loStream = Server.CreateObject("ADODB.Stream")
loStream.Open()
loStream.Type = 1
loStream.LoadFromFile("/_downloads/document.pdf")
Response.BinaryWrite( loStream.Read() )
loStream.Close()
%>

The problem lies in the reception of this stream at the client browser I
guess. Some IE6 browsers accept it, other don't... and using the contentType
of word/excel with a word/excel sheet is no problem anyway...

regards
Joost



Wed, 09 Feb 2005 00:13:11 GMT  
 BUG Problem PDF file reading in some IE6's
On the machine it doesn't work, if you directly specify a URL to a pdf file
in the window.open method, does it work?

Regards,
Gang Guo
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com



Fri, 11 Feb 2005 21:27:42 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. BUG Problem PDF file reading in some IE6's

2. COOKIE PROBLEM WITH 'IE6' AND FRAMESETS:

3. after pdf Export with Crystal - pdf File isn't able to use default Font

4. Problem with reading PDF file

5. Problem when upgrading from IE6 SP0 to IE6 SP1

6. Javascript routine in .URL file doesn't work in IE6

7. HTML Application (.HTA) with IE6 - Bug?!

8. imagelist / treeview control on web page, bug ie6?

9. Reading full text file (via FSO) when file contains char code 0's

10. Open and Read a PDF file

11. ActiveX DLL to read Adobe Acrobat PDF file

12. Help:(Immediate) Reading Pdf (acrobat reader) files from Visual Basic

 

 
Powered by phpBB® Forum Software