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:
00120874
Vues:
24
>>>Greetings!
>>>
>>>When running an .APP, I can successfully launch Excel under program control by issuing "RUN /N excel c:\temp". This loads an .XLS file called TEMP into Excel. (The temp file is created by FoxPro based on preferences in a grid.) Apparently,
>>>I will appreciate any help. Thank you!
>>>
>>>Michael Reynolds
>>
>>
>>If you are using VFP you can subclass Excel and control it totally from within VFP. There are some samples on my web page you can download, but to start excel you might try:
>>oxcel=createobject('excel.application')
>>then test with
>>? type('oxcel.application')='O'
>
>Hi, John.
>
>Thanks for writing! I have experimented with CreateObject and Excel seems to load in the background. The only way I can see that it's active is my doing "Ctrl+Alt+Del" and looking in the Close Program dialog. If I release the object variable assigned with CreateObject, Excel closes. I wonder whether my system is having conflicts.
>
>I'll take a look at your web site. Thanks for your help!
>
>Michael Reynolds


Try oxcel.visible=.t.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform