Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > VB FAX USING FAXSERVER RunTime Error

VB FAX USING FAXSERVER RunTime Error

Forum Windows XP : Windows XP General Discussion - VB FAX USING FAXSERVER RunTime Error

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

I've searched the web and read about 100 pages on MSDN and I dont understand why the following code doesn't work. It error out everytime on the FaxDocument.Send line with a RunTime Error '-2147024890 (80070006) Method 'send' of object 'IFaxDoc' failed


Any Ideas would be great.

Public Function SendFax(FileName As Variant, FaxNumber As Variant, RecipName As Variant)

Dim objFaxServer As FaxServer
Dim FaxDocument As FaxDoc

Set objFaxServer = CreateObject("FaxServer.Faxserver" )

Dim sSName As String
Dim iMsg As Integer

objFaxServer.Connect "//GLP-FAX"
objFaxServer.Connect "//GLP-FAX"

objFaxServer.ArchiveOutboundFaxes = 1
objFaxServer.Retries = 4
objFaxServer.RetryDelay = 4

Set FaxDocument = objFaxServer.CreateDocument(FileName)
FaxDocument.FaxNumber = FaxNumber
FaxDocument.DisplayName = "Tim"
FaxDocument.FileName = FileName
FaxDocument.Tsid = RecipName
Dim lSend As Long

FaxDocument.send

End Function


Sub TestFax()


Call SendFax("C:\test.doc", "1234567", "TEST" )
End Sub

Sponsored Links
Register or log in to remove.

the account credentials the script is running under has permissions to manage the fax console in the fax management properties section for security?

can you run filemon and regmon to see where it might be failing? any access denies?

Reply to fattony

I'm running it on my computer logged into a domain as part of the administrators group.

I have full permissions over the fax management. I personally installed and set it all up. It shouldn't be a credentials issue. I'll check into it thank you for your input.

Reply to tdecker81
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > VB FAX USING FAXSERVER RunTime Error
Go to:

There are 1251 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them