Advertisement
6_2008-2009 OLE/ COM/ DCOM/ Active-X #197387

Fax with Win2k & XP

With this snippet you can fax from any windows 2000 and windows XP box with Fax Services! The only other way to share a fax otherwise is Small Business server. All feedback is welcome!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Sub Form_Load()
  On Error GoTo ErrHandler
  Dim strComputer As String
  strComputer = "yourComputerName"
  
  Dim oFaxServer As FAXCOMLib.FaxServer
  Set oFaxServer = New FAXCOMLib.FaxServer
  Dim oFaxDoc As FAXCOMLib.FaxDoc
  
  oFaxServer.Connect strComputer
  oFaxServer.ServerCoverpage = 0
  Set oFaxDoc = oFaxServer.CreateDocument(App.Path & "\" & "New Text Document.txt")
  
  With oFaxDoc
    .FaxNumber = "5551212"
    .DisplayName = "Fax Server"
    Dim lngSend As Long
    lngSend = .Send
  End With
  
  Set oFaxDoc = Nothing
  oFaxServer.Disconnect
  Set oFaxServer = Nothing
  Exit Sub
ErrHandler:
  MsgBox Err.Number & " " & Err.Description
End Sub
Original Comments (3)
Recovered from Wayback Machine