Results 1 to 5 of 5

Thread: How to use Office Assistant with VB?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    4

    Question

    Hi list!
    Someone know how to use the Office Assistant with VB5 or VB6?
    Thanks in advance
    [email protected]
    [email protected]
    VB5 SP3
    If you can't make a revolution, just make an evolution...

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    hi, and welcome to VBWORLD

    to accomplish what you need, you will have to add a MS Agent Control to your program.

    then put this code in the declerations:

    Code:
    Dim al As IAgentCtlCharacterEx
    Const DATAPATH = "clippit.acs"
    and this on the form load event:
    Code:
       Agent1.Characters.Load "clippit", DATAPATH
        Set al = Agent1.Characters("clippit")
        al.LanguageID = &H409

    now add 1 text box and a button to the form


    code for button:
    Code:
        clippit.Show
        clippit.Speak Text1.Text

    now run your program, and if you have ms office installed the clip will appear and say what's in the text box when you click the button
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    4
    Amazing man!
    Do you know what kind of license I need to redistribute this agent with my apps?
    All the lucky!
    [email protected]
    VB5 SP3
    If you can't make a revolution, just make an evolution...

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    goto microsoft's MS agent webpage:

    http://msdn.microsoft.com/workshop/i.../licensing.asp
    NXSupport - Your one-stop source for computer help

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    you can also get some better agents at microsoft

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