Results 1 to 5 of 5

Thread: How to Open a Word Document in VB...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Exclamation How to Open a Word Document in VB...

    Hi Guys,
    I need to know how to open the Word Document files in VB. I tried with the Rich Text Box, but some of Ascii characters is there in my Rich Text Box. Please Help me. I need it very very urgently for a Project I'm doing. Thnx in advance.
    Stop Piracy. Stop Using Microsoft.

  2. #2
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263

    Wink

    Some months ago I needed to do something like this... The only way I got is using the Insertable Object "Word Document", it works so so, cause it opens a word instance (with the document).

    If you want, I send the source code... Ok?
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Cool Got it but in a different way...!

    Hi Jlarini,
    Actually I also thought to do like that, But there was an extremely easy way than that. I got advice to use the ShellExecute API to do the same thing. Since *.doc will be registered with a file type to open it (The Default Viewing Program). So I don't want to strain too much in this thing. If I used your method then it demands the presence of Office. But in my method even if office is not installed it would be opened in Wordpad the default viewer for opening Word Documents and Rich Text Format files. So I had no problem. If you need the ShellExecute just call me. I'll pass on to you. I hope you would be aware of that.

    Stop Piracy. Stop Using Microsoft.

  4. #4
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263

    Smile You're right!

    you're right... I just didn't think this way...

    well, I'm happy you got the solution.

    See ya...

    Jlarini.
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Thumbs up Thnx

    Hi Jlarini,
    Really the creedits goes to Planet-source-code.com. Because I got detailed idea of doing so from there only. Anyway thnx for your credits.

    Regards,
    Ramanan.
    Stop Piracy. Stop Using Microsoft.

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