After a long time, I got two modem and finally got it...
The following example is only implemented using JScript. For other versions, see.
Write it down by yourself and hope it will help you ^_^.
Note:
This sectionCodeValid only for WINXP. The sending methods for Win 2000 and Win 98 are different;
Refer:
Http://members.optusnet.com.au /~ Hssandler1/vbscript.htm
Http://www.dotnetjunkies.com/Forums/ShowPost.aspx? Postid = 2932
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/fax/faxlegacyvb_836n.asp
// /////////////////////////////////////
// Title: Fax send sample code
// Date: 2005-1-18
// Author: runmin@tom.com
// /////////////////////////////////////
// Get the fax server
VaR Faxserver = New Activexobject ( " Faxcomex. faxserver " );
Faxserver. Connect ( "" );
// Create a fax document
VaR Doc = New Activexobject ( " Faxcomex. faxdocument " );
// Specify a content file, any printable file.
Doc. Body = " C: \\ program files \\ Kingsoft \\ Powerword 2003 \\ tips.txt " ;
Doc. documentname = " Fax test sample " ;
// Recipients
Doc. Recipients. Add ( " 820 " ) // To fax number here
// Sender Properties
Doc. Sender. Name = " Mruan "
Doc. Sender. faxnumber = " 806 " // From fax number here
// Send the fax Doc
Doc. connectedsubmit (faxserver)