PDA

Click to See Complete Forum and Search --> : Using Word


Dec 15th, 1999, 08:59 PM
I am creating an application which lets managers scan an employee database. When they find the employee they are looking for,they click on a button and view the employee's resume in an RTF box. The resume is originally created in Word, saved, then saved as an RTF file with the same name. The RTF file is what is pulled into the VB RTF object.

What I now need to do is to add a button that will launch Word and open the resume to allow senior managers to edit/update the resume.

Thanks...

Serge
Dec 15th, 1999, 09:26 PM
Add a reference to Microsoft Word 8.0 (or select the highest version you have installed) Object Library. Then use something like this:

Dim oWord As New Word.Application
Dim oDoc As Word.Document

Set oDoc = oWord.Documents.Open("F:\MyFile.rtf")
oWord.Visible = True




------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)