Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faxing from VFP
Message
De
06/11/1997 18:32:44
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
00058435
Message ID:
00058753
Vues:
47
>The only way I have faxed frm VFP was to print a report to Microsoft Fax or whateverfax software I had on the machine.
>
>>Sorry, no experience with MAPI. Have you looked at the MAPI controls? I couldn't see anything about faxing....
>>
>>Anyways, you said you know how to fax from VFP. To what methods were you referring?
>>
>>Joe
>>
>>>Thanks for replying.
>>>
>>>I will specify the fax recipients from VFP and be able to select fax recipients for each report. Could I do this using MAPI?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>It all depends on whether you are going to select the locations from within your VFP application...if you are, you probably want to use a fax program that uses DDE or OLE or some method to send the document and locations from the program...if it is suffice to choose the locations in the fax software, just select the fax program print driver as your print device when you print the report...
>>>>
>>>>re: I know I can fax from VFP I am just looking for different opinions on the best method.
>>>>
>>>>or did I miss something?
>>>>
>>>>
>>>>>I need to send reports from VFP via fax. What is the best way to accomplish this?
>>>>>
>>>>>I must fax the report to at least four locations. Can I use normal fax software? Do I need a 3rd party app in my app? Can I use MS Exchange?
>>>>>
>>>>>I know I can fax from VFP I am just looking for different opinions on the best method.

You can fax from VFP using MAPI and Exchange. Here is how:

1. Go to your exchange profile Delivery tab and make sure that the Microsoft Fax Delivery Transport is the first item on the list. If it is not you will get errors

2. Place the MAPI SESSION (oleSession) AND MAPI MESSAGE (oleMessage) OLE objects on your form

3. Place the following code in the Init Method of your form:
thisform.oleSession.LogonUI = .F.
thisform.oleSession.UserName="MS Exchange Settings" (Name of your Exchange profile)
4. Create a method on your form called SendFax, and in it place the following code:
thisform.oleSession.Signon() && this signs you on to a session
thisform.oleMessage.SessionId = thisform.oleSession.SessionId
thisform.oleMessage.Compose()
thisform.oleMessage.MsgIndex = -1
thisform.oleMessage.RecipDisplayName ="[FAX:555-5555]" && Recipient's fax number
thisform.oleMessage.MsgSubject = "This is your Subject"
thisform.oleMessage.MsgNotText = "This is your Message Text"
thisform.oleMessage.ResolveName() && this acually sends it
thisform.oleMessage.Message.Send(.F.) && this supresses dialog box
thisform.oleSession.Signoff() && sign off mail

5. Just gather your data and place them in the appropriate places and call thisform.SendFax().

I hope this helps.

-Ed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform