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 Rhinorhino 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
Joined
Oct 10, 2003
Messages
32
Location
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