View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default how can i use Microsoft agent with microsoft office?

Hi ?B?QWJkdWw=?=,

I'm tryin to use microsoft agent in microsoft office to read what ever i have
in the file.

This is an end-user newsgroup, not a developer one. The Office.developer groups
would be the better place to address questions concerning agent.

You'll have to understand the object model of the Office application you want to
use agent with. For Word, you could loop through each paragraph and have agent
pick up the text. Something like this:

Dim doc as word.Document
Dim para as Word.Paragraph

Set doc = ActiveDocument
For each para in doc.Paragraphs
sAgentText = para.Range.Text
'Put the agent code here to "speak" the text
Next

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)