Use a program to control windows Fax sending.

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.