Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FRX2Word - Undesired Side Effect
Message
From
10/01/2003 15:03:21
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
FRX2Word - Undesired Side Effect
Miscellaneous
Thread ID:
00740468
Message ID:
00740468
Views:
72
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"
*!*	oF2W.ReportHome="C:\MyApp\Reports" && Optional (new to 1.5)
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
Next
Reply
Map
View

Click here to load this message in the networking platform