CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    1

    Start Word in VB application

    How can i start Microsoft Word in an VB Application


  2. #2
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: Start Word in VB application

    Use OLE control. When you insert it inot the form it will ask you about the type of file you would like to attach.Click on doc and also click the check box "Create Link to the file".
    Then use
    Command1_Click()
    ole1.doverb

    Hope you will try it!



  3. #3
    Join Date
    Aug 1999
    Location
    Bahrain
    Posts
    13

    Re: Start Word in VB application

    If you want to start a separate Instance of Word, use.....

    shell ("c:\progra~1\Micros~1\Office\winword.exe")

    If you want to open it in your own application, use OLE Objects.



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

Featured