Results 1 to 2 of 2

Thread: Using Word

  1. #1
    Guest

    Post

    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...

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Add a reference to Microsoft Word 8.0 (or select the highest version you have installed) Object Library. Then use something like this:
    Code:
        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


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