Hi All,
This is my first attempt at using vfp5 to create a report to a file and then load Word and open the file so it can be edited and I need some help please.
Here's the code in the click event of my command button,
store ThisForm.Sttxtcons.value to mcon
repo form strpconsignorstatement for stncwork.cons_no = ThisForm.Sttxtcons.value ;
to file &mcon ascii
oword = createobject("Word.application")
OWORD.VISIBLE = .T.
oword.Open FileName:=&mcon ***HERE'S MY PROBLEM !!!
ThisForm.Sttxtcons.value = " "
ThisForm.Sttxtcons.SETFOCUS()
thisform.refresh
I'm getting stuck on the openfilename part, I keep getting error messages.
I ran a macro in Word to see what was going on but can't seem to get the file open part right.
Thanks for any help you can give me.
Jim Harvey
jharvey@netrax.net