Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do that from vfp8: open explorer, ctrl-a, emailto
Message
 
À
14/09/2005 10:13:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01049385
Message ID:
01049473
Vues:
11
Sorry if it was not clear.
Yes I you want it programatically, selecting all files (but I will control the folder (it will only contains 5-6 files).

Here is the business need: My users are working on operation files with my vfp8 application. For each file, they may create 1 to 10 different reports that they will consult, save, email, etc... later on. So in the application, they create pdf files that I save in a folder named with the file number (ex.: F1002). From the application, I would like to be able to show the folder (maybe by using internet explorer within a vfp form?). When they email, I would like to use ShellExecute mailto so it will use their default mail system (outlook or other). In a perfect world, I would have a button mail (I know the email destination from the vfp file) that would select all and do a shellexecute with all the pdfs in attachment.

thks again


>>I know that we can execute some shell command from vfp8 but is there a way to do that:
>>Open windows explorer from a specific folder
>>Select all files (CTRL-A)
>>Lauch the mailto

>
>Eric
>
>You are not clear on what do you want to do.
>Do you mean you want to display Windows Explorer, have the user select a folder, press ctrl-A to select ALL files (or maybe some), then send those fail by email as an attachment?
>
>If that is the case, do you want it under program control? (programatically)?
>If you want the user to do it manually, then launching Explorer through ShellExecute is easy, but then you do not have control on what they do.
>
>If you want it programatically, this is dangerous as selecting CTRL-A (all files) could potentially create a HUGE email (thousands of attachments).
>
>If you still want to do this, you could use the MS Common Control instead of using Explorer directly. The control has the capability of multiple selection - as opposed to VFP's GetFile().
>
>You could then return all file names into an aray or a cursor. You could even use ADIR()for this if you don't want to give the user control on individual files, but just to pick a full folder (or you could with more work).
>
>Once you have the filenames, you can ZIP them with DynaZIP or similar program and then you can email with one of the different email options available. Borislav pointed you to one source of email routines already.
>
>Note that your message says to "launch mailto". This will not work as it cannot add attachments through simple mailto priotocol (AFAIK).
>
>Please be more descriptive on what you want to do.
>
>HTH
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform