faxcom.dll

FaxCom.dll 傳真服務客戶API的COM接口

微軟 windows2000 系統自帶DLL

c# 下使用方法

faxDoc = (FAXCOMLib.FaxDoc)faxSrv.CreateDocument(this.fileName);

if (faxDoc != null)

{

faxSrv.Connect(System.Net.Dns.GetHostName());

faxDoc.FaxNumber = this.faxNumber;

faxDoc.FileName = this.fileName;

faxDoc.Send();

}

基本介紹

  • 外文名:faxcom.dll
  • 性質:科學
  • 類別:計算機
  • 屬於:編程
使用方法,調用方法,

使用方法

FaxCom.dll 傳真服務客戶API的COM接口
微軟 windows2000 系統自帶DLL
c# 下使用方法
faxDoc = (FAXCOMLib.FaxDoc)faxSrv.CreateDocument(this.fileName);
if (faxDoc != null)
{
faxSrv.Connect(System.Net.Dns.GetHostName());
faxDoc.FaxNumber = this.faxNumber;
faxDoc.FileName = this.fileName;
faxDoc.Send();
}

調用方法

首先 引用FAXlib 部件
Private Sub Form_Load()
Dim lngSend As Long
Dim strComputer As String
Dim oFaxServer As FAXCOMLib.FaxServer
Dim oFaxDoc As FAXCOMLib.FaxDoc
On Error Goto ErrHandler
strComputer = "wokofocomputer"
Set oFaxServer = New FAXCOMLib.FaxServer
oFaxServer.Connect strComputer
oFaxServer.ServerCoverpage = 0
Set oFaxDoc = oFaxServer.CreateDocument(App.Path & "\" & "New Text Document.txt")
With oFaxDoc
.FaxNumber = "01084927299"
.DisplayName = "made by wo wokofo"
lngSend = .Send
End With
Set oFaxDoc = Nothing
oFaxServer.Disconnect
Set oFaxServer = Nothing
Exit Sub
ErrHandler:
MsgBox Err.Number & " " & Err.Description
Err.Clear
End Sub
ASP 等腳本語言需要自己編譯生成DLL 才能調用
更多請翻閱MSDN上相關資料

相關詞條

熱門詞條

聯絡我們