BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Word Toolbar "Disconnect"

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
surfbored
Guest





PostPosted: Sat Aug 12, 2006 12:52 am    Post subject: Word Toolbar "Disconnect" Reply with quote



I've been automating Word 2003 through Delphi 2005 with some success. But
now I'm running into a very strange problem and could really use some help
in finding a solution.

I have Word 2003 running in an OleContainer. Opening files, making edits
and all that works great. The toolbars and menus work pretty much the way I
expect them to.

Here's the problem -- when the OleContainer loses focus, the toolbars
disappear. I have managed to bring them back without too much fuss (using
OleContainer.DoVerb(0)), with one exception.

The toolbar no longer updates itself as you scroll through the Word
document.

For example, place the cursor on a bold word, the bold button should
highlight, it doesn't. Right-click the toolbars and the button updates as
it should, until you move the cursor again, for instance to a non-bold
word.

Help from you Delphi gurus would sure be appreciated!

Thanks,

SB
Back to top
surfbored
Guest





PostPosted: Fri Sep 01, 2006 9:47 pm    Post subject: Re: Word Toolbar "Disconnect" Reply with quote



surfbored <nospam (AT) email (DOT) com> wrote in
news:Xns981CA19484712finderusanet (AT) 207 (DOT) 105.83.66:

Quote:

I've been automating Word 2003 through Delphi 2005 with some success.
But now I'm running into a very strange problem and could really use
some help in finding a solution.

I have Word 2003 running in an OleContainer. Opening files, making
edits and all that works great. The toolbars and menus work pretty
much the way I expect them to.

Here's the problem -- when the OleContainer loses focus, the toolbars
disappear. I have managed to bring them back without too much fuss
(using OleContainer.DoVerb(0)), with one exception.

The toolbar no longer updates itself as you scroll through the Word
document.

For example, place the cursor on a bold word, the bold button should
highlight, it doesn't. Right-click the toolbars and the button updates
as it should, until you move the cursor again, for instance to a
non-bold word.

Help from you Delphi gurus would sure be appreciated!

Thanks,

SB



Okay so NO ONE has an answer for this problem?

Can at least someone tell me if you see the same problem when you try to
automate Word through an OLE Container?

Has anyone actually automated Microsoft Word successfully (using OLE
Containers)? Or is this just one of those theoretical things everyone
talks about without really doing it?

PLEASE post if you've ever tried to do so, successful or not. I'm really
interested to see how likely it is to actually use OLE containers well.

Thanks,

SB.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.