Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Excel from within FoxPro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00120781
Message ID:
00121485
Vues:
17
Hi Michael,

my tip to test that a valid Excel session is running:

1. insert the CHECKEXCEL method (see code below) in your form object:

LOCAL oExcel
oExcel = GETOBJECT(,"Excel.application")

because this code will obviously trigger an error when no excel session is running, insert specific code in the form ERROR management loop such as

DO CASE
** no Excel instance running ... run one a session (or inform user)
CASE method="checkexcel"

MESSAGEBOX("please run an Excel session")
RETURN

OTHERWISE
...
ENDCASE

Regards from Paris

François
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform