Results 1 to 6 of 6

Thread: Pls ..help...PDF file opening in VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    26

    Question Pls ..help...PDF file opening in VB

    I have a .PDF (Acrobat) file and would like to open it using Visual Basic. Is it possible .

    Can someone point me in right direction please.

    thank you
    nath

  2. #2
    lord_dude
    Guest
    Click Project menu, components
    Select acrobot control and OK.
    Draw it out on screen.
    Code:
    Pdf1.LoadFile (Path)

  3. #3
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    The only thing I can think of is using Shell or one of its API equivalents to launch Acrobat Reader with the PDF filename as the argument. Adobe is pretty tight-lipped with the PDF format (it costs a bundle to get a program that creates them), so I don't think there are any PDF-related controls for VB. Even if there are, they'd probably be pretty pricey.
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  4. #4
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    Oh wow...while I was posting my thoughts I was proven wrong
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    26

    Question Thanks lord_dude..but..

    Lord_dude,

    I am able to load the PDF file into the Acrobat activex control.

    But can copy the content of the PDF file into an ASCII file? I need to take the content put into an ASCII file and manipulate that content. PDF is a binary file I don't if I can copy the content of a binary file into and ASCII file or into an Access database.

    Pls suggest me..

    Thank you
    nath

  6. #6
    lord_dude
    Guest
    Originally posted by csammis
    Oh wow...while I was posting my thoughts I was proven wrong
    Happens to me sometimes and is very annoying



    bnath001

    Not really sure how to do this. The only way i can think of would be to open the pdf in adobe acrobat reader, then pass in the keys ctrl a (select all) followed by ctrl c (copy) and then save whats in the clipboard into file. There might b a much easier way of doing it but i have never really used the pdf control so i dont know much about it.

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