please help me....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thayaparan
    New Member
    • Oct 2006
    • 1

    please help me....

    hi I need a help, how can I connect from vb 6.0 to word?? for eg if I type some text in vb then I click ok button after then automatically open word document and show what I typed in vb...

    thanks for your help..

    bye,
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by thayaparan
    hi I need a help, how can I connect from vb 6.0 to word?? for eg if I type some text in vb then I click ok button after then automatically open word document and show what I typed in vb...

    thanks for your help..

    bye,
    it is not too difficult to do if you put in some practise.
    First you need to add microsoft word as a reference in your VB project.
    Then you declare an object as an instance of Word.
    Then you open a document and add the text.
    You will need to learn this slowly. It applies to all apps and you use the supplied API (application programming interface) to call functions in Word

    Once you have linked to Microsoft Word under Project | References in your VB menu, you can View | Object Browser and select the Microsoft Word library to learn about the Word API.

    Good Luck

    Comment

    Working...