You may start with something like this:
oWord = CREATEOBJECT("Word.Application")
oWord.documents.open("c:\vfug_nl_2003_11.txt")
oWord.visible=.t.
.....
OPen method has syntax like:
*expression.Open(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format)
So you can open the file in the format you wish.
>Hi,
>
>i have the following situation : i have a file with memo fields. The information in these fields are changed (via set textmerge on) depending the information i find in another dfb and than stored in a text file. This text file is showed to the user and this user can manipulate the text file. Once this files is closed the user can print him out or fax it to somebody. There is no need to save the changed textfile back to the memo field.
>
>my question : knowing that this working methode gives no graphical possibilities (bold,underline,....) i was wondering if i could do the same stuff but instead to do the output to a txt file doing the output to a word document. I know i can create a word document doing cMyDoc=createobject('word.docmument') but i dont know how to transfere the data to the document.
>
>Can somebody help me with some samplecode or telling me where i can find some info how i can manipulate data and import it into a word document ?
>
>Thnx.