25 users online (2 members and 23 guests)  


  Results 1 to 4 of 4

Related

  1. problem in file reading    Forum: CGI Perl Forum
    Replies: 1
  2. Loading problem using phpThumb    Forum: PHP Forum
    Replies: 0
  3. Writing to text file problem    Forum: CGI Perl Forum
    Replies: 5
  4. web site loading problem    Forum: HTML Forum
    Replies: 6
  5. Loading a file from subfolder    Forum: HTML Forum
    Replies: 2
  1. #1
    SCG's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    10

    Problem loading .pdf file

    I'm not sure if this is the right forum for this but I have a problem displaying a .pdf file in Internet Explorer.

    I want to open a .pdf file in a new window in Internet Explorer for users to print off.
    When I try this in preview mode using the browser from my HTML program (Hotmetal 6) it works fine and gives a toolbar including a print button for printing off the page.
    However when I do it for real on the website it loads the .pdf file without a toolbar, so user cannot print it.
    Both methods use the same version of Explorer, and same version of Acrobat Reader.

    The code from the parent window is:
    <TD ALIGN="LEFT"><BR>To open a printable version of this information
    and a booking form in .pdf format click
    <A HREF="javascript:void(0);"
    ONCLICK="win=window.open('New%20Dawn%20Retreat.pdf',null,'scrollbars=yes')">
    here</A></TD>
    In BODY is
    ONFOCUS="if (window.win) {window.win.close()}"

    What happens on opeing the .pdf file does depend on the Acrobat Reader settings. Mine is set to to open in browser window.

    Or is there a better way to do this.
    I have looked around the forums and recommendations seem to be to ZIP files but I want to keep it simple and Zipping just seems to add another step.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi,

    If you specify anything in a new window using javascript, then everything else not specified will be missed out.

    Try using the Popup maker tool, its makes it easy to specify what you need.

    I think the print button is in the 'toolbar'.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    SCG's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    10

    Smile

    Hi Dean,

    Thanks for the quick reply. That certainly solved the problem. I realise now that I didn't state the problem quite right. The toolbar, containing the print button that was there in one case and not the other was the Acrobat reader toolbar. In neither case was the Explorer toolbar present.
    However using the Popupmaker which sets toolbar=1 brings up both toolbars under both conditions.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    excellent. Glad its working.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread