Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FRX2Word - Undesired Side Effect
Message
De
10/01/2003 15:03:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
FRX2Word - Undesired Side Effect
Divers
Thread ID:
00740468
Message ID:
00740468
Vues:
73
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform