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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi and word

Status
Not open for further replies.

MirceaVleju

Programmer
Oct 10, 2003
32
0
0
RO
OK! How can i Load (not to edit it, just to see it) in a delphi programme
 
Here's one technique:

Code:
var
Word, WordDoc : Variant;
begin
  Word := CreateOleObject('Word.Application');
  [i]//change to false for background processing:[/i]
  Word.Visible := True;
  [i]//to create a Word Document from a [b]template[/b]:[/i]
  WordDoc := Word.Documents.Add('R:\Case Management\JMSv2\Forms\PaymentLetter.[b]dot[/b]');
  [i]//to open an existing [b]document[/b]:[/i]
  WordDoc := Word.Documents.Open('R:\Case Management\JMSv2\Forms\TrialList.[b]doc[/b]');
end;



Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top