?
Solved

Winfax SDK problem

Posted on 2003-03-04
2
Medium Priority
?
588 Views
Last Modified: 2012-08-14
I'm developing an application in VB that is supposed to make use of the Winfax SDK (I am using version 10.0 and Concord's Internet Fax service).  It seems to be working for the most part, but once I send the fax, it just sits in the Message Manager Outbox.  If I right click on the fax and select Send Now, it still just sits there.  The fax always seems to be correctly formatted, and all attachments are present.

I have no problem sending a fax using Winfax directly and if I have my application bring up the send dialog before sending, it works just fine.

I created a simple application that is supposed to send a fax to my fax machine upon being run, but it encounters the same problem.  Here is the code I have for this application:

---------------------------------------------------------
Private Sub Form_Load()
Dim sendObject As Object
Dim ret As Integer

Set sendObject = CreateObject("Winfax.SDKSend")

ret = sendObject.SetSubject("TEST!!!")
If (ret = 1) Then
    MsgBox ("SetSubject Failed")
    End
End If

ret = sendObject.SetKeywords("Test")
If (ret = 1) Then
    MsgBox ("SetKeywords Failed")
    End
End If

ret = sendObject.SetResolution(0)
If (ret = 1) Then
    MsgBox ("SetResolution Failed")
    End
End If

ret = sendObject.SetQuickCover(1)
If (ret = 1) Then
    MsgBox ("SetQuickCover Failed")
    End
End If
   
ret = sendObject.SetCoverText("This is a Test.")
If (ret = 1) Then
    MsgBox ("SetCOverText Failed")
    End
End If
   
ret = sendObject.SetUseCover(1)
If (ret = 1) Then
    MsgBox ("SetUseCover Failed")
    End
End If

ret = sendObject.ShowCallProgress(1)
If (ret = 1) Then
    MsgBox ("ShowCallProgress Failed")
    End
End If

ret = sendObject.SetTo("Somebody")
If (ret = 1) Then
    MsgBox ("SetTo Failed")
    End
End If

ret = sendObject.SetNumber("#######") 'My fax number
If (ret = 1) Then
    MsgBox ("SetNumber Failed")
    End
End If
   
ret = sendObject.SetAreaCode("###") 'My area code
If (ret = 1) Then
    MsgBox ("SetAreaCode Failed")
    End
End If
   
ret = sendObject.SetPriority(1)
If (ret = 1) Then
    MsgBox ("SetPriority Failed")
    End
End If
   
ret = sendObject.AddRecipient()
If (ret = 1) Then
    MsgBox ("AddRecipient Failed")
    End
End If
   
ret = sendObject.LeaveRunning()
If (ret = 1) Then
    MsgBox ("LeaveRunning Failed")
    End
End If
 
ret = sendObject.GetRecipientCount() 'this shows 1
MsgBox ("Recipient Count: " & ret)   'recipient
 
ret = sendObject.Send(1)
If (ret = 1) Then
    MsgBox ("Send Failed")
    End
End If
 
End Sub
---------------------------------------------------------
0
Comment
Question by:sellison
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:sellison
ID: 8066565
Ok, I've answered my own question.  I need to call sendObject.SetType with the index of the transport method I am using (in this case, 0 for Internet).
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8066729
PAQ'd and points refunded

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question