Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

µSoft Word - Office 2000

Status
Not open for further replies.

baudouxf

Programmer
Jan 17, 2003
12
BE
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
 
baudouxf

You may want to consider updating you code since the "word.basic" does not allow you to supress the messages.
Take a look at faq184-2859. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top