faxserver.connect()

  • Thread starter Thread starter Russ
  • Start date Start date
R

Russ

What should I put in the connect string if I want to connect to a
Windows 2003 shared fax? eg:

Dim oFaxServer As New FAXCOMLib.FaxServer
Dim oFaxDoc As FAXCOMLib.FaxDoc
oFaxServer.Connect(strFaxServer)
oFaxDoc = oFaxServer.CreateDocument(sFaxAttachment)
oFaxDoc.FaxNumber = sFaxNumber
oFaxDoc.Send()

I've tried "Servername", "\\servername", "\\servername\fax" and "fax"

In vb.net I get "The handle is invalid" in vb6 I get "Method send
failed in object ifaxdoc". I've tried this in XP home and XP
professional.

I have added a connection to the fax server through "printers and
faxes" and I can print to the fax from Word. I can also fax if I use
"." as the server name, but this uses my local fax driver.

Any ideas?

Cheers

Russ
 
FAXCOMLib cannot be used to send faxes via the remote server. For local
server you can leave the server name string as blank. If you want to connect
to remote server and send a fax please make use of Extended COM APIs. For
further details on extended COM Apis see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxinta_n_7e05.asp.


Thanks,

--
Chandrasekar R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 
Extended COM APIs

Do you know whether the Extended COM APIs could be used in C#/.NET? I'm new to C# and even newer to COM ...
 
Back
Top