Results 1 to 8 of 8

Thread: How do I open a PDF file with VB.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Location
    In the middle of nowhere
    Posts
    4

    How do I open a PDF file with VB.Net

    How do you open a PDF file with VB.net? I have tried to use the shell command without luck.

    Thanks!

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Open it like how?

    Open it so it will open in Adobe Acrobat or open it as in your program acts like an acrobat replacement?

    HGUE difference.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Location
    In the middle of nowhere
    Posts
    4
    Hi kasracer and thanks for your reply!

    I want to open it with Adobe Acrobat Reader.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by phasma
    Hi kasracer and thanks for your reply!

    I want to open it with Adobe Acrobat Reader.
    VB Code:
    1. start.process("C:\omg.pdf")

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Location
    In the middle of nowhere
    Posts
    4
    Didn't know it was that easy!!! I am getting an error during the build it states "Name 'start' is not declared" Any ideas?

    Thanks again!

  6. #6
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    er process.start()
    lol stupid me

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Location
    In the middle of nowhere
    Posts
    4
    Works like a charm! Thank You for the help!

  8. #8
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120

    Re: How do I open a PDF file with VB.Net

    i want to open the file in my form itself noty in another windows how 2 go about it ?
    with Regards
    sameer Mulgaonkar

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