Results 1 to 5 of 5

Thread: Controlling PDFs viewed with Acrobat Reader in the Webbrowser object

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Controlling PDFs viewed with Acrobat Reader in the Webbrowser object

    One way of viewing PDFs in VB6 is to use the standard acrobat reader to view them in the webbrowser object (i.e. using pdf.ocx indirectly).

    My question is - if one does that by say

    webbrowser.navigate "http://www.vbworld.com/bozo.pdf"

    how can one send commands to the adobe plug-in to do things like do thing like hiding the toobar etc.


    Here is an example of it being done with scripting http://www.borncity.com/WSHBazaar/News5.htm but I'm not familiar with that so I don't know how to convert it to VB6.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I don't understand, why cross the river to get to the water? Why don't you add the pdf.ocx directly on a form?

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    I agree. You can then use...

    VB Code:
    1. Me.Pdf1.setShowToolbar False
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by Joacim Andersson
    I don't understand, why cross the river to get to the water? Why don't you add the pdf.ocx directly on a form?
    Because on this bank of the river Adobe have fouled the water Joacim

    Adobe do not support the use of pdf.ocx embedded in forms and while it worked fine with Acrobat 4 with Acrobat 5.05 there are installation issues with pdf.ocx needing an unknown support file to work in stand alone mode (not pdf.tlb)

  5. #5

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Re: Well

    Originally posted by James Stanich
    I agree. You can then use...

    VB Code:
    1. Me.Pdf1.setShowToolbar False
    Its a little more complex too as I am using this with a custom acrobat plug-in. Normally this would go in the acrobat reader plug-in's folder. If I'm just using pdf.ocx where would I put my plug-in file ( e.g. myplugin.api )? Putting them in the same directory as the OCX does not work.
    Last edited by Kzin; Apr 10th, 2003 at 11:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width