Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxing from VFP
Message
From
12/11/1997 11:31:45
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00058435
Message ID:
00059729
Views:
49
>>>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().
>>>
>>
>>This seem to be the best way to do it with Win95, did you ever do it with
>>Windows NT Workstation?
>
>No I have not. But it should work if you can install MS Exchange on NT
>There is no fax service for NT in Ms exchange
>What approche would you use to batch fax a report form with exchange???
>

You can batch a job simply adding the document names to a table. Set up timer to fire when you want the batch to run. Loop through the table and fax each document. After you are through delete the document names from the table.
-Ed

>I'm looking for option because when you use the FAX rendering subsystem, >exchange always start the server application, this means that if you fax a Word >document, it will start Word and and print the document before it will fax.

If you don't want Word to start, you will have to use a third party control such as FaxPlus. I have had dubious results with FaxPlus, however, in an automated environment, and you should call the .DLL directly foir best results. FaxPlus is written for VB, and I have had trouble just droping the control on my form and using it.
-Ed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform