Urgent

  • Thread starter Thread starter Tarun Mangla
  • Start date Start date
T

Tarun Mangla

Hi

I am facing a strange issue. Below is the code that I am using:

Dim objFaxServer As Object
Dim objFaxDoc As Object

Set objFaxServer = CreateObject("FaxServer.FaxServer")
objFaxServer.Connect ("Faxservermachinename")
Set objFaxDoc = objFaxServer.CreateDocument("TextFax.txt")
objFaxDoc.FileName = "TextFax.txt"
objFaxDoc.FaxNumber = 61396862833#
objFaxDoc.send
Set objFaxDoc = Nothing
Set objFaxServer = Nothing

Fax Server is connected, but the objFaxDoc.send gives an error:

Method '~' of object '~' failed.

Please suggest!


Regards
Tarun Mangla
 
Could it be that the FaxNumber property is not in quotes?

Try...

objFaxDoc.FaxNumber = "61396862833"

...instead of...

objFaxDoc.FaxNumber = 61396862833#
 
You need to create the FaxDocument object and then use it.
set objFaxDoc = CreateObject("FaxComex.FaxDocument")---
Renu Bhattar [MSFT]

Microsoft Printing, Imaging and Faxing
This posting isprovided "AS IS" with no warranties and confers no rights.
Please do not send mail directly to this alias. This alias is for newsgroup
purposes only.
 
Back
Top