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 

Insert text in a open word document

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





PostPosted: Tue May 01, 2007 7:35 pm    Post subject: Insert text in a open word document Reply with quote



Hello,

How can I input text from a Listbox's double click to a word document? The
document must be open before inserting the text. Please help.

--
Best Regards
Md. Shariful Alam Khan
Back to top
Mike Shkolnik
Guest





PostPosted: Tue May 01, 2007 9:32 pm    Post subject: Re: Insert text in a open word document Reply with quote



word := GetActiveOleObject('Word.Application')
word.ActiveDocument.Range.InsertAfter(yourString)

--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com

"Md. Shariful Alam Khan" <murad_mouri (AT) yahoo (DOT) com> wrote in message
news:463745b9 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

How can I input text from a Listbox's double click to a word document? The
document must be open before inserting the text. Please help.

--
Best Regards
Md. Shariful Alam Khan

Back to top
Md. Shariful Alam Khan
Guest





PostPosted: Wed May 02, 2007 12:34 am    Post subject: Re: Insert text in a open word document Reply with quote



Thank you very very much. I help me a lot.

Best Regards
Md. Shariful Alam Khan

"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:46376bc1 (AT) newsgroups (DOT) borland.com...
Quote:
word := GetActiveOleObject('Word.Application')
word.ActiveDocument.Range.InsertAfter(yourString)

--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com

"Md. Shariful Alam Khan" <murad_mouri (AT) yahoo (DOT) com> wrote in message
news:463745b9 (AT) newsgroups (DOT) borland.com...
Hello,

How can I input text from a Listbox's double click to a word document?
The
document must be open before inserting the text. Please help.

--
Best Regards
Md. Shariful Alam Khan



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.