Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

VBA & WORD2000 - I don't see some events occuring with ActiveX Con

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Sherry - 10 Oct 2005 16:00 GMT
Hi
I am trying to use the TextToSpeech ActiveX Contol (in Vtext.dll) in VBA in
a Word 2000 application running under Win2K.
I have inserted the ActiveX control into a UserForm.

I can get the ActiveX Control to speak text no problem, however I have to
use polling rather than event driven. I would of course prefer to use event
driven.

In the VBE I see 11 different events available, but the only two that seem
to occur are the "_Enter" and "_Exit" events.

If test the ActiveX control in the "ActiveX Control Test Container" supplied
with Visual C++, I do see some of the other events occuring eg "_Visual",
"_SpeakingStarted" and "_SpeakingDone" events.

Has anybody any ideas on what I'm doing wrong in VBA?

Many Thanks in Advance
Word Heretic - 11 Oct 2005 01:58 GMT
G'day "John Sherry" <JohnSherry@discussions.microsoft.com>,

There are 2 ways to invoke TTS: asynch or synch. This drastically
changes the required 'event model'.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

John Sherry reckoned:

>Hi
>I am trying to use the TextToSpeech ActiveX Contol (in Vtext.dll) in VBA in
[quoted text clipped - 15 lines]
>
>Many Thanks in Advance
Brandon Jones - 11 Oct 2005 04:50 GMT
You might want to consider downloading Speech 6 (SAPI6) from Microsoft.com.
It includes an impressive and greatly simplified TTS and Speech core. The
SDK has extensive VB examples too.

> Hi
> I am trying to use the TextToSpeech ActiveX Contol (in Vtext.dll) in VBA in
[quoted text clipped - 15 lines]
>
> Many Thanks in Advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.