I wish to convert a memo field into a Word format document.
I searched around and found this:
oWord=CreateObject("word.application")
oWord.Documents.Open("c:\test.doc")
oWord.ActiveDocument.Range.Start=0
oword.ActiveDocument.Range.End=0
oWord.ActiveDocument.Range.Text="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
oWord.Documents.Save()
It works if the test.doc is already there. How do I create the file using VFP code because the file name should be created by the user himself.
Thanks.