Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement