Page 1 of 3 123 LastLast
Results 1 to 15 of 40
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    This is a long shot, probably, but is there a way to integrate an Acrobat document within a Visual Basic form? Similar to how you can embed it within a Web page.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    I believe there is an Acrobat Reader control, pdf.ocx, that you can use for that purpose.
    Charlotte

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    That almost sounds too good to be true. Wonder why they don't distribute it when you pay $250 for their full program!

    Do you know where I can download it?

  4. #4
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    You probable already have it, but it is too good to be true: "The Acrobat Control is designed specifically for use with Internet Explorer; it is not a full-featured ActiveX Control." Looks like it does have some functionality, tho. <A target="_blank" HREF=http://www.adobe.com/support/techdocs/165f2.htm>Here's</A> a link for more info. --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  5. #5
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    It works! I have AA Reader 4.0. In VB, with a <Ctrl>T, I checked "Acrobat Control for ActiveX" and put the control on my form. It has a custom property with just the URL in it. I don't have an Internet connection on my VB machine, so I just entered a local file name, including drive, path and name. When I pressed enter, it screamed "Internal Error!", but it didn't crash, so I pressed run and it displayed my document. Cool! Hopefully with 5.0 you'll do even better. --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Sam,

    Did it launch a separate Acrobat document or were you able to open it inside your form, that is, integrated as part of your form?

    Mike

  7. #7
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    And Sammy, depending on your answer to my last (since I would prever a non HTML object in my form as I don't know how to program in HTML), there is a control that allows you to display a web browser within your forms. Can display of Acrobat documents be done within this type of control?

  8. #8
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    <img src=/w3timages/blackline.gif width=33% height=2>
    > launch a separate Acrobat document or were you able to open it inside your form
    <img src=/w3timages/blackline.gif width=33% height=2>
    Inside the form

    <img src=/w3timages/blackline.gif width=33% height=2>
    > a control that allows you to display a web browser within your forms
    <img src=/w3timages/blackline.gif width=33% height=2>
    Yes, use the application wizard and include web support

    <img src=/w3timages/blackline.gif width=33% height=2>
    > Can display of Acrobat documents be done within this type of control?
    <img src=/w3timages/blackline.gif width=33% height=2>
    Yes
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  9. #9
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Nice. I'll research that, Sammy, thank you very much for your response.

  10. #10
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Way fun, I tried to put it on a UserForm in a Word document, typed a file name in as the src, it loaded and I tried to run the form. Oops. All frozen up. Ah well, maybe in version 5... <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  11. #11
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Sam,

    I've been trying to figure this out. I guess Jefferson tried this too and it sounds like it failed on him, though he was using it in a Word document.

    Anyhow, I've loaded the SDK of Adobe from their full version 5 and Acrobat Control for ActiveX is not part of my choices for references. There are quite a few other references for Acrobat that display, but I've tried them all and none have a control that pops into the toolbox. I am assuming that there would have to be a control that I would paint onto the screen that would contain the Acrobat document for display.

  12. #12
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    FWIW version 5 works beautifully for me in an Excel userform with a local file. Handy to know too!
    Regards,
    Rory

    Microsoft MVP - Excel

  13. #13
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    The control comes with Acrobat Reader. Look for pdf.ocx on your machine. If it's there, just browse for it. I've played with it on Access 2000 forms and it works fine there.
    Charlotte

  14. #14
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Just to clarify my story, it was the Acrobat 4 control, I placed it on a VBA UserForm in the VBE in a Word document (not a template). I pre-rigged it to a particular document on my PC, and the PDF appeared with miniscule text at design time. So far, so good. Then I ran the form with the F5 key (not with a procedure in a module) and it froze up. So, maybe it would be willing to play with it again, but not right away.

  15. #15
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Embedding Acrobat in VB (VB6 & Acrobat 5.0 Writer)

    Hi Charlotte,

    I hate asking you this again, and I really don't want to put you in another position where I make you soak your head, but I found the PDF.OCX, added it to my references and it still did not give me a control to paint on the form to contain the PDF document. Am I approaching this right?

    Mike

Page 1 of 3 123 LastLast

Posting Permissions

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