View Single Post
  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
neia neia is offline
external usenet poster
 
Posts: 11
Default error #1429 in mailmerfeword8

I looked informations about this and I discoverd the article bellow on
http://www.code-magazine.com/article...301072&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.

"Peter Jamieson" escreveu:

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

"neia" wrote in message
...
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.


"Peter Jamieson" escreveu:

Can you post the code that you use to control Word?

Peter Jamieson

"neia" wrote in message
...
I created an application using Visual Fox Pro 6.0 that has an option to
mailmerge
data for word 2003. When pressuring button that executes this mailmerge
I
receive the following message: "Error #1429 in mailmergeword8 (63) ole
Idispatch exception code 0 from Microsoft word".
What does it mean? What can I do to eliminate this problem?
Bellow, I show part of the program´s code in order to give more
information:

WITH THISFORM.mailmerge1
.cAppTitle = "Sistema X"
.nWordProc = 1
.nNewDoc = 2
.cdocname = docx
.nTemplate = 1
.cAlias = ALIAS()
.cDBCTable = DBF()
.cDBCName = DBC()
ACOPY(aflds, .aAutoFields)
.MakeOutput()
ENDWITH

DO Executa_ApiShell32.prg WITH "Open", docx