Unfortunately I don't know VFP well enough to know what might be wrong with
the VFP part of your system but,
a. Which version of Word? Is it Word 97? If it is a later version, you may
need to take account of the following article:
http://support.microsoft.com/kb/825765
b. Can you open your Mail Merge Main Document in Word, manually, and run
the merge successfully?
c. how do you actually execute the merge? Does your document have an
AutoOpen macro, or do you control Word from VFP using OLE Automation?
Peter Jamieson
>I created an application using Visual Fox Pro 6.0 that has an option to
> mailmerge
[quoted text clipped - 19 lines]
>
> DO Executa_ApiShell32.prg WITH "Open", docx
neia - 12 Apr 2007 13:08 GMT
a. My word is 2003. Afterwards I will read the article you listed.
b. Yes.
c. I control word from vfp using ole automation.
thanks
> Unfortunately I don't know VFP well enough to know what might be wrong with
> the VFP part of your system but,
[quoted text clipped - 33 lines]
> >
> > DO Executa_ApiShell32.prg WITH "Open", docx
neia - 12 Apr 2007 15:40 GMT
Peter
I read the article and I modified the windows register.
Although the mailmerge was succesfully, because I saw the results, I
continue receiving the message error.
Do you have any idea?
> Unfortunately I don't know VFP well enough to know what might be wrong with
> the VFP part of your system but,
[quoted text clipped - 33 lines]
> >
> > DO Executa_ApiShell32.prg WITH "Open", docx
Can you post the code that you use to control Word?
Peter Jamieson
>I created an application using Visual Fox Pro 6.0 that has an option to
> mailmerge
[quoted text clipped - 19 lines]
>
> DO Executa_ApiShell32.prg WITH "Open", docx
neia - 12 Apr 2007 18:04 GMT
I haven´t created a code in Word.
I only use the code I post bellow in VFP.
This problem appears since I began using XP with office 2003.
Initialy, when I created this program, I didn´t have problems.
> Can you post the code that you use to control Word?
>
[quoted text clipped - 23 lines]
> >
> > DO Executa_ApiShell32.prg WITH "Open", docx
Peter Jamieson - 12 Apr 2007 22:57 GMT
I think this error is raised when the template that the document is attached
to cannot be found.
Perhaps you have upgraded the documents to Word 2003 but not the templates,
or something like that.
Peter Jamieson
>I haven´t created a code in Word.
> I only use the code I post bellow in VFP.
[quoted text clipped - 29 lines]
>> >
>> > DO Executa_ApiShell32.prg WITH "Open", docx
neia - 17 Apr 2007 18:36 GMT
I looked informations about this and I discoverd the article bellow on
www.code-magazine.com/article.aspx?quickid=0301072&page=3:
"Visual FoxPro has a number os functions to retrieve error information,
such as Message(). However, those functions are not really adequate to make
this bullet-proof, since nested erros make things a bit complicated...."
I use VPF 6.0. so, I coudn´t apply the code suggested because it refers to
8.0 version of VFP, but I solved my problem asking about this error into a
mailmerge class.
Thanks for your help.
> I think this error is raised when the template that the document is attached
> to cannot be found.
[quoted text clipped - 37 lines]
> >> >
> >> > DO Executa_ApiShell32.prg WITH "Open", docx