Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Storing' Files in DBF files
Message
De
27/09/2011 23:04:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Divers
Thread ID:
01524682
Message ID:
01525004
Vues:
25
>>>>The user has a button on the cutomer maintenance screen that says 'Store info in a WORD file'. I then construct a file name based on the customer number and do your shell execute function. The first time the function will bomb, since the file does not exist. I want to create the file ahead of time if it does not exist. How do I do that?
>>>
>>>I think if the file does not exists, you may want to activate the corresponding application for the user to create that file. Say, for the Excel or Word you can do it using OLE Automation. For other types you may simply start the application - search for RunExe samples.
>>
>>Bummer.
>>
>>This means that he will have to save the file using the complicated naming convention I use in the program. Not very elegant.
>
>Well, for Excel and Word is not too hard to create a new file using OLE Automation. What other types do you support?

I'll start with Word and Excel. I think I can figure it out. Thank you so much for your help.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform