Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxing from VFP
Message
 
To
06/11/1997 13:15:17
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00058435
Message ID:
00058688
Views:
30
When this is all set-up, how do you actually send the report to the recipients?

REPORT FORM TO PRINTER

???

Joe

>I think using the method below will require to register the fax-recipient in exchange before you can fax. If you have your recipient faxnumbers in your database you could try this:
>
> loAddr = loMapiMsg.recipients.add
> loAddr.AddressEntry.Type = 'FAX'
> loAddr.Name = 'name'
> loAddr.Address = 'FAX:name@0123-456789'
> loAddr.AddressEntry.Address = 'name@123-456789'
>
>>>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?
>>>
>>>
>>
>>
>>Yes you can .. If the recipient names/addresses are set up in one of the Microsoft Mail "Address Books" then all you have to do is specify the RecipientName property for the fax.
>>
>>eg
>>
>>oMapiMessage.RecipIndex=0 && set the first recipient
>>oMapiMessage.RecipType=1 && sets the primary recipient property
>>oMapiMessage.RecipDisplayName="Fax Recipient 1"
>>oMapiMessage.ResolveName && this causes MAPI to search the address books for the "Fax Recipient 1" entry .. if found it fills in the proper address into the RecipAddress property and sets the type (fax .. mail etc)
>>
>>
>>Unforunately, this also means that Microsoft Mail must be setup on the computer .. not just adding the MAPI controls.
>>
>>The nice thing is that Microsoft Mail handles all the setup info for each recipient .. regardless of type of message .. FAX, internal email or internet email. MAPI is quite easy to use and (so far) seems to be relatively bug free. Of course, my App is still in a Beta Test" mode so I don't have a good grasp on any potential problems. One problem I did run into was MAPI generating a "Invlid Profile" message when I logged in. This was solved by specifying the the "Default Profile" name in the UserName property. (Thanks to Corey Rector for this info)
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>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.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform