Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically create a file link in the clipbo
Message
 
À
03/10/2006 16:30:34
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:
01159122
Vues:
27
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