Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass data from VFP to Microsoft Fax ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00021616
Message ID:
00021777
Vues:
34
>>I want to write a code to pass FaxNo in VFP database to Faxno field in Microsoft Fax .How can I do it ?
>>Pls help .
>
>This has been answered in prior threads. Use MAPI controls via OLE but >make sure that your version of MSFax (or Exchange) is updated to the most >recent version as the first version shipped with Win95 did not have OLE >control. There was an article written by Lisa Slater in Inside VFP Sept. >1996 issue on precisely this subject. Try >http://www.cobb.com/vfp/9609/vfp9691.htm for a reprint (may still work).
>code sorta works like this:
>
>oSession = CREATEOBJECT("MAPI.session")
>oSession.Logon("MS Exchange Settings", .F.) && MSExchange Profile name
> without seeing a login box.
>oMessage = oSession.OutBox.Messages.Add() &&message object
>oRecipient = oMessage.Recipients.Add()
> WITH oRecipient
> .Name = "Whomever"
> .Address = "FAX:Whomever@999-9999"
> .AddressEntry.Type = "FAX"
> .AddressEntry.Address = "Whomever@999-9999"
> ENDWITH
>oMessage.Update()
>oMessage.Send(.T.,.F.) &&.T.=Save copy of message, .F.=no confirm dialog
>
>There are other OLE controls to attach the document you are sending. If >you are sending a report that is run though, about the only way to do >this is to use Delrina WinFaxPro which uses DDE to send the routing >information as part of "printing" the report to WinFax.

Do you know if one can use other methods, besides .Name, .Address,
.Subject ?

Like what MS Exchange uses in it's coversheets: {note}, {Recipient's Office Number} , etc..

TIA

Erik N-P
- Erik Niese-Petersen

Crazy Dane in USA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform