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.
Printable View
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.
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? :)
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.
:)
you're right... I just didn't think this way... :rolleyes:
well, I'm happy you got the solution.
See ya...
Jlarini.
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.