Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel DefaultFilePath inconsistent
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Excel DefaultFilePath inconsistent
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01098511
Message ID:
01098511
Vues:
58
I create an Excel workbook and launch Excel in my code. The oExcel DefaultFilePath does not always set the FILE->SAVE AS folder location. I have run the following code in the Command window and the pattern seems to be the first time that I change the location, it keeps the old location. Then if I run the code again, it now has in the FILE->SAVE AS the new folder location. When I am in Excel I am doing nothing other than looking at the FILE->SAVE AS and then closing the application.
site_id = '10'
cDirectory = rpath + '\Query_Maker\r' +ALLTRIM(site_id)+'\'
RELEASE oexcel
oExcel = CREATEOBJECT('Excel.Application')
oExcel.DefaultFilePath = cDirectory
oExcel.Workbooks.Add
oexcel.Visible = .t.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform