Hi,
I'm using Foxpro 7 to start µSoft Word for reporting. The .DOC file is a merge file getting data from an .XLS file. The whole process is the following :
***************************************
SYS(3006, 1033)
oleAPP=CREATEOBJECT("Word.Basic"
ax = 'worddoc.doc'
wd_print1(4)
RELEASE oleAPP
PROCEDURE wd_print1
PARAMETERS aa
oleApp.FileOpen(SYS(5)+SYS(2003)+ax)
oleApp.MailMergeToDoc
FOR aax = 1 TO aa
oleApp.FilePrint
ENDFOR
******************************************
The problem is that Winword still running in background & if I start Word manually, Word open automatically 'doc.doc'.
If I use 'oleApp.FileQuit' before 'RELEASE oleAPP', Word ask me if I want to save the modifications.
Is there any way to avoid this question from Word?
Many Thanks to anyone
Francis
I'm using Foxpro 7 to start µSoft Word for reporting. The .DOC file is a merge file getting data from an .XLS file. The whole process is the following :
***************************************
SYS(3006, 1033)
oleAPP=CREATEOBJECT("Word.Basic"
ax = 'worddoc.doc'
wd_print1(4)
RELEASE oleAPP
PROCEDURE wd_print1
PARAMETERS aa
oleApp.FileOpen(SYS(5)+SYS(2003)+ax)
oleApp.MailMergeToDoc
FOR aax = 1 TO aa
oleApp.FilePrint
ENDFOR
******************************************
The problem is that Winword still running in background & if I start Word manually, Word open automatically 'doc.doc'.
If I use 'oleApp.FileQuit' before 'RELEASE oleAPP', Word ask me if I want to save the modifications.
Is there any way to avoid this question from Word?
Many Thanks to anyone
Francis