Urgent

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
 
Joined
Apr 11, 2006
Messages
4
Reaction score
0
Could it be that the FaxNumber property is not in quotes?

Try...

objFaxDoc.FaxNumber = "61396862833"

...instead of...

objFaxDoc.FaxNumber = 61396862833#
 
R

Renu Bhattar [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top