Results 1 to 5 of 5

Thread: want to open word or pdf file

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    paris
    Posts
    2

    want to open word or pdf file

    I want to open a word or pdf document . I have already the full path

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Process.Start("C:\Inetpub\wwwroot\Private\poc\Felix100427.pdf")

  3. #3
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Whatever you put in quotes after Process.Start, VB will examine the extension and try to open the file using the appropriate program. (That's what i've gathered with constant pestering )
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    That is correct it works the same as the old ShellExecute API call, if you ever used that in VB6.

  5. #5
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Whay!! I didn't know that a week ago! Pestering does pay off
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

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