View Single Post
  #1  
Old 12-18-2011, 07:49 PM
fromb fromb is offline
Junior Member
 
Join Date: Jan 2004
Posts: 16
Default Add Text to Word

How do I add text from a text box in my Delphi app to an existing word document at a specific place in the document? I know how to open the document with;

var Word: Variant;
begin
Word:=CreateOLEObject('Word.Application');
Word.Visible:=True;
Word.Documents.Open(GetCurrentDir+'\Test.docx');

The document is a template on which certain information needs to be automatically entered at different areas on the document with information supplied in text boxes in my app.

Thanks
Reply With Quote