Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could I create a Word Document in Delphi ?

Status
Not open for further replies.

Bogdan81

Programmer
Oct 2, 2002
11
RO
I wanna create a Word Document in delphi. How could I do this ?
 
Use the "Word Document" component located in the Servers Tab.

The help explains exactly how to use them...
I've done some small tests, but the performance didn't impress me... :)



//Nordlund
 
Try this

//include ComObj in the uses clause
procedure TForm1.Button1Click(Sender: TObject);
var Word: variant;
begin
Word := CreateOleObject('Word.Application');
Word.Documents.Add;
Word.Visible := True;
end;

It opens up a new word document if thats what you'are after

Joell
 
Try this

//include ComObj in the uses clause
procedure TForm1.Button1Click(Sender: TObject);
var Word: variant;
begin
Word := CreateOleObject('Word.Application');
Word.Documents.Add;
Word.Visible := True;
end;

It opens up a new word document if thats what you're after

Joell
 
Thx ! I understand, but I observed that using OLE is slower than using type library. Why ?
 
"Wanna" does not exist in the English langauge nor does "Thx". :)

Is there some reason why the English language should be
further murdered like this by (presumably) another
American?

In addition to Kilometers already being referred to as KiLLOMMeters (instead of KEEEElometers). Especially since (curiously) nobody refers to KiLLO-LLeters of petrol .. or KiLLOgrams of butter?

Just asking LOL
 
Hi all..

The post I'm answering on, are meant as a joke, but I don't like it anyway...

Should we use German, France or some other language instead... Or maybe swedish. It would be easier for a lot of the users around the forums...

I'm not an expert on the english language and this post isn't spelled and typed in correct English, but the main thing is that we understand each other, or???

"Ok. Vi kör svenska istället. Lättare för mig iaf..."


Chill out dudes... :-D

//Nordlund
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top