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 OLE - check a checkbox

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





PostPosted: Wed Sep 22, 2004 10:04 pm    Post subject: Word OLE - check a checkbox Reply with quote



Help!

I have a Delphi 5 application that use OLE to open word, build a multipage
document and fill in data, etc... it works great and for the past 2
years.... now I have been given a form that has lots of check boxes and I
need to find a way to check the boxes.

I know the check box has a bookmark associated with it. ... I can get a
bookmark and know that it returns a variant type pointing to it, but

Greatly appreciate any hints or suggestions.


- Lou


Back to top
Lou Feliz
Guest





PostPosted: Wed Sep 22, 2004 10:39 pm    Post subject: Re: Word OLE - check a checkbox Reply with quote



Getting closer....

Did more Googling and found a reference to ...
vWordServer.ActiveDocument.FormFields.Item(vFieldName).CheckBox.Value
:=true;

but it does not work for me as I am using the Type library and not the
server component. If I am succesful, I will post my solution.

- Lou
"Lou Feliz" <junkmail (AT) krmrisk (DOT) net> wrote

Quote:
Help!

I have a Delphi 5 application that use OLE to open word, build a
multipage
document and fill in data, etc... it works great and for the past 2
years.... now I have been given a form that has lots of check boxes and I
need to find a way to check the boxes.

I know the check box has a bookmark associated with it. ... I can get a
bookmark and know that it returns a variant type pointing to it, but

Greatly appreciate any hints or suggestions.


- Lou





Back to top
Lou Feliz
Guest





PostPosted: Wed Sep 22, 2004 10:45 pm    Post subject: Re: Word OLE - check a checkbox Reply with quote



I figured it out...basically what I just did...just a dum typo on my
side....

- Lou

"Lou Feliz" <junkmail (AT) krmrisk (DOT) net> wrote

Quote:
Help!

I have a Delphi 5 application that use OLE to open word, build a
multipage
document and fill in data, etc... it works great and for the past 2
years.... now I have been given a form that has lots of check boxes and I
need to find a way to check the boxes.

I know the check box has a bookmark associated with it. ... I can get a
bookmark and know that it returns a variant type pointing to it, but

Greatly appreciate any hints or suggestions.


- Lou





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.