• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1803
  • Last Modified:

What Namespace of the .NET framework would allow to automatically send a fax using VB.NET?

I need to know What Namespace of the .NET framework would allow to automatically send a fax using VB.NET?
Sample code for the routine will be welcome.
Thanks everybody
0
mpoincare
Asked:
mpoincare
2 Solutions
 
theonlyfreakyCommented:
0
 
rajaloysiousCommented:
See in ms-help://MS.VSCC/MS.MSDNVS/fax/faxlegacyvb_9tb3.htm

To create a FaxServer object, call the Visual Basic CreateObject function as illustrated in the following sample:
Dim FaxServer as Object
Set FaxServer = CreateObject("FaxServer.FaxServer")
Following is a list of the Visual Basic methods of FaxServer objects.

Method Visual Basic Example
Connect  
Connects a fax client application to an active fax server.  Dim FS As Object
Dim ServerName As String
ServerName = "MyServer"
FS.Connect(ServerName)
 
CreateDocument  
Creates a FaxDoc object. The object allows a user to create and send a fax document. Dim FD As Object
Dim FS As Object
Dim FileName As String
FileName = "MyFile"
Set FD = FS.CreateDocument(FileName)
 
Disconnect  
Terminates a connection to a fax server.
 Dim FS As Object
FS.Disconnect()
 
GetJobs  
Creates a FaxJobs object. The object allows enumeration of the queued jobs for the connected fax server.
 Dim FJ As Object
Dim FS As Object
FJ = FS.GetJobs()
 
GetPorts  
Creates a FaxPorts object. The object allows enumeration of fax port configuration information for the connected fax server.
 Dim FP As Object
Dim FS As Object
FP = FS.GetPorts()
 
Following is a list of the Visual Basic properties of FaxServer objects.

Property Visual Basic Example
ArchiveDirectory
STRING
Read/Write  
Location at which the fax server archives outgoing fax transmissions.  ' Retrieve
Dim strArchDir As String
strArchDir = objFaxServer.ArchiveDirectory
' Assign
objFaxServer.ArchiveDirectory = "MyDirectory"
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now