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
|