Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically create a file link in the clipbo
Message
De
03/10/2006 16:48:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01159071
Message ID:
01159124
Vues:
37
I don't want to create that kind of a link, I want to attach the actual file so that it is sent with the email message. If you for instance locate a PDF in explorer, mark it and press ctrl-c, you have created a link to this file in the clipboard. Then when you switch to Outlook, find a message and press reply, you can press ctrl-v and this file is added to the message as an attachement. I want the same type of link added to the clipboard, but I want to do it programmatically. I hope I described it better this time.

>Hi Tore,
>
>When I execute _CLIPTEXT = "file:///C:\WINDOWS\System32\calc.exe" in VFP, then switch to Outlook message and press Ctrl-V, I get the link pasted into the message.
>
>>No, sorry. I don't need the name of the file, nor do I need the contents of the file, I need to store a link to the file into the clipboard. I am pretty sure that I must use an API function, but I don't know which.
>>
>>>Would this work?
>>>_CLIPTEXT = PathToFile
>>>
>>>>In an application we need to copy a link to a file into the clipboard, so that we can paste this link into Outlook and create an attachemnt. If this description of my need is unclear, I will describe the scenario.
>>>>
>>>>My user receives an email asking for more information about a given product. He wants to reply by making some small comments, and attaching a file, for instance a PDF or a DOC. Information about which file he shall attach, is in a memo field. So I want to add a button to his form which creates a link to this specific file, so that when he writes the reply in Outlook, he can simply press ctrl-v, and the file is attached.
>>>>
>>>>Any suggestions?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform