×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

winfax DDE in VFP - usage of variables

winfax DDE in VFP - usage of variables

winfax DDE in VFP - usage of variables

(OP)
I have the following segment of code intended to send out faxes from a query list, however when I replace actual data with variables, winfax doesn't seem to recognize the data. Is there something simple that I may be missing with the replacement variables? For example, in the first 'retvar' assignment, I want to replace the text string with a variable name from a table, and so on with the other fields required by winfax...

* Set up WinFax
    FaxChan=DDEInitiate("FAXMNG32","CONTROL")
    retvar=DDEExecute(FaxChan,"GoIdle")
    FaxChan=DDEInitiate("FAXMNG32","TRANSMIT")
    retvar=DDEPoke(FaxChan,"sendfax",'attach("s:\chris\jill\assoc1.txt")')
    ****retvar=DDEPoke(FaxChan,"sendfax",'recipient("6819032","11:11:11","10/10/01", ;
    ****"Chris","cm","test stmt","test","0000","Fax")')
    retvar=DDEPoke(FaxChan,"sendfax",'recipient("6819032","01:00:00","10/10/15", ;
    "Christest","cm","test stmt","test","0000","Fax")')
    ** retvar=DDEPoke(FaxChan,"Sendfax",'resolution("HIGH")') && or "LOW"
    retvar=DDEExecute(FaxChan,"GoActive")
    retvar=DDEPoke(FaxChan,"sendfax",'showsendscreen("1")') && show send screen
    retvar=DDEPoke(FaxChan,"sendfax","SendFaxUI")
    retvar=DDETerminate(FaxChan)

RE: winfax DDE in VFP - usage of variables

(OP)
This is just a follow-up to the original post :

In trying to use 'CreateObject' i.e. CreateObject("winfax.SDKSend") I am still getting the following
message : "Class definition ... is not found"
I already have winfax running when I do this yet still
receive the error message.

Does anyone know the correct syntax for the createobject statement?

** This creates the object for WinFax
private oWFSend
oWFSend=CreateObject("winfax.SDKSend")
oWFSend.SetResolution(0)
oWFSend.ShowCallProgress(1)
oWFSend.ShowSendScreen (0)
oWFSend.SetNumber(mfaxno)
oWFSend.SetSubject(mfaxsubj)
** oWFSend.SetCompany()
oWFSend.SetTo(mfaxname)
 
oWFSend.AddRecipient
oWFSend.Send (1)
*

Thank you for your help.

Chris

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close