what is word ??
word := CreateOleObject('Word.Application');
type of word ??
----- Original Message -----
From: Mike Shkolnik
To: [email protected]
Sent: Monday, September 24, 2007 22:37
Subject: Re: [delphi-en] text to word
Hello,
> I want to move text from Delphi to Microsoft word.
> Please help me.
You may do it using ole-automation for MS Word:
{open MS Word}
word := CreateOleObject('Word.Application');
word.Documents.Add
{add your text}
document.Range.InsertAfter(yourString);
document.Range.InsertParagraphAfter;
{close}
document.SaveAs(strLastFileName);
document.Close;
word.Quit;
You may use third-party component where all "low
level" work is implemented already. For example, try
our SMExport suite: http://www.scalabium.com/sme
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
[EMAIL PROTECTED]
With best regards, Mike Shkolnik
EMail: [EMAIL PROTECTED]
http://www.scalabium.com
__________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
-------------------------------------------------------
Summit Information Technologies Limited, Gurgaon, India
[Non-text portions of this message have been removed]