PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Fax faxserver.connect()

Reply

faxserver.connect()

 
Thread Tools Rate Thread
Old 06-09-2004, 09:36 AM   #1
Russ
Guest
 
Posts: n/a
Default faxserver.connect()


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
  Reply With Quote
Old 07-09-2004, 02:48 PM   #2
Chandrasekar [MSFT]
Guest
 
Posts: n/a
Default Re: faxserver.connect()

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/d...inta_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.

"Russ" <googlegroups@russellengland.com> wrote in message
news:8570d88d.0409060036.1f86bee4@posting.google.com...
> 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



  Reply With Quote
Old 15-12-2005, 10:09 PM   #3
cobra2005
Junior Member
 
Join Date: Dec 2005
Posts: 1
Trader Rating: (0)
Default 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 ...
cobra2005 is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off