Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxing solution for VFP
Message
 
To
12/12/2001 10:18:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00592326
Message ID:
00593790
Views:
18
Hi Jerry
I use Equisys Zetafax the same manner i used Winfax, that is using DDE calls. It works great, and i have an app that sends nearly 2000 faxes a day, with no flaws. I use Zetafax instead of Winfax because it has the possibility to send through multiple lines simultaneously ( i use 8 lines now ), and Winfax has support for only 2 simultaneous lines. Also, Zetafax seems much more stable when sending 'heavy loads of faxes'.
Anyway, here's is a send example.
First, in the init of your form or startup of your app, add the following:
=DDESETOPTION("TIMEOUT",30000)
=DDESETOPTION("SAFETY",.F.)
Then, assuming your zetafax printer is the default ( or selected ) printer:
local FaxChan, RetVar, FaxSubject, FaxRecipient, FaxNumber, lHold
FaxNumber = "12345678"
FaxSubject = "Subject of your fax"
FaxRecipient = FaxNumber+","+FaxSubject+","+"Recip. Name"
FaxChan = DDEInitiate( "Zetafax", "Addressing" )
Retvar = DDEExecute( FaxChan, "[DDEControl]" )
Retvar = DDEPoke( FaxChan, "To", FaxRecipient )
report form YourReport to printer noconsole
lHold = inkey(2) &&& sometimes takes some time to spool
RetVar = DDEExecute( FaxChan, "[Send][DDERelease]")
RetVar=DDETerminate(FaxChan)
In case Zetafax printer is not your default printer, you should SET PRINTER to NAME "ZetaFax" prior to running this code. Also, this should be run from the station where you have the Zetafax client installed. Also, you can install Zetafax client and server in the same computer.

Hope this helps, and merry christmas
Jaime


>Do you have an example of using their api to fax a VFP report?
>
>Thanks,
>
>Jerryt
>
>
>>http://www.equisys.com/
>>
>>It's a very different product from WinFax - It's a server that sits somewhere on the network and has requests for faxing sent to it. It can even rasterise documents on the server (rather than having to do it on the client.
>>
>>I've found it to be extremely reliable, but I've not used WinFax extensively so I find it hard to make a meaningful comparison.
>>
>>Cheers,
>>
>>Andrew
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform