Environment: Office XP Pro on W2K Pro SP3, FRX2Word 3.00
1. Opened Word, created a new document, typed in some stuff
2. Started and ran a VFP app that runs a small procedure (listed below) which calls FRX2Word and generates a report as a Word document. Document created as expected, no errors encountered.
3. After FRX2Word was finished and the WAIT WINDOW closed, noticed that my original instance of Word was closed without saving my changes or even asking to save them.
The first time I encountered this I had 3 Word documents open; fortunately I hadn't modified any of them.
Am I missing something here?
PROCEDURE FRX2Word_Test
oF2W = CREATEOBJECT("FRX2Word")
oF2W.SaveFolder = SYS(5) + CURDIR()
oF2W.DOC_FileName = "FRX2Word_Test.DOC"
nSuccess = oF2W.ReportForm("CAD_R14A")
WAIT WINDOW "Return Code: " + LTRIM(STR(nSuccess))
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up