Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zetafax - how to send faxes from VFP?

Status
Not open for further replies.

bs6600

Programmer
Sep 23, 2005
50
0
0
GB
Hi,
Can anyone help me with using zetafaz as an object?

the zetafax site no longer offers any info on VFP. I created some code a long time ago, I think by translating from VB.

My attempt is like this:
Code:
oZfAPI       = CREATEOBJECT("ZfLib.ZfAPI")
oUserSession = oZfAPI.Logon(myLoginName, .f.)
oNewMessage  = oUserSession.CreateNewMsg()
oNewMessage.Recipients.AddFaxRecipient(mycontact,mycompany,myfaxno)
oNewMessage.Text = "myText"
oNewMessage.Subject = "mySubject"
oNewMessage.Priority = zfPriorityUrgent
oNewMessage.Files.Add(myAttachment)
oNewMessage.Send()

but it seems to fail at the first line. Sorry that's so vague but i have to rely on the client's descriptions as I am not at the system with Zetafax.

My questions are?

is the 'zflib.zfapi' correct?
what libraries/procedure etc should I include in my set ...to...additive statements?

Bill Spence,
Dunfermline, Scotland
 
Guessing here, as I have never used Zetafax;

Is this object registered on the client machine?
zetafax said:
Register the Zetafax API object model library (if you have not installed the Zetafax client)
If you intend to use the COM API (e.g. from a Visual Basic program), then you will need to register the object model library on the development computer. You do this from a command prompt as follows:

Change directory to the location of ZFAPI32.DLL
Type the command “REGSVR32 ZFAPI32.DLL”
A dialog box should appear confirming that the registration was successful.
Note: If you have installed the Zetafax client onto your development computer, the COM API is installed and registered automatically. It is installed by default to C:\Program Files\Common Files\Equisys.

Your code seems OK, based upon the link provided by Markros...
 
Thanks for these replies.

Turns out that Equisys who do Zetafax will no longer talk about VFP. I quote:

"VPF is not a common language and I'm afraid we wouldn't be able to help."

So I'm going that way - sadly...



Bill Spence,
Dunfermline, Scotland
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top