Automatic faxing from Jade

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Automatic faxing from Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:58 pm

by Anonymous >> Thu, 10 Jan 2008 22:59:19 GMT

Is there a way of faxing from Jade in an automated way (no user interface and no additional software)?
Attachments
5167.doc
(23.5 KiB) Downloaded 311 times
Last edited by ConvertFromOldNGs on Fri Aug 07, 2009 4:27 pm, edited 1 time in total.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Automatic faxing from Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:58 pm

by shane >> Mon, 31 Mar 2008 12:34:48 GMT

Check out www.webservicex.net free fax web service

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Automatic faxing from Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:58 pm

by shane >> Mon, 31 Mar 2008 12:35:13 GMT

Check out www.webservicex.net free fax web service

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Automatic faxing from Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:58 pm

by Torrie Moore >> Mon, 31 Mar 2008 19:57:57 GMT

You can use the Microsoft Fax Service ActiveX interface to send a fax. Import this library and then the example script should get you going. More information on this can be found on the Microsoft web site.

Regards

Torrie

====== EXAMPLE ======
vars
oFaxDocument : FaxDocument;
oFaxServer : FaxServer;
saJobID : StringArray;

oIFaxServer : IFaxServer;begin


create oFaxDocument transient;
create oFaxServer transient;

oFaxServer.createAutomationObject();
oFaxDocument.createAutomationObject();

oFaxServer.connect( "Server Name");

//Set the fax body
oFaxDocument.body := "C:\temp\Test.txt";

//Name the document
oFaxDocument.documentName := "My First Fax";

//Set the fax priority
oFaxDocument.priority := 1;

//Add the recipient with the fax number
oFaxDocument.recipients.add( "Receiptient Phone", "Receiptient Name" );

//Choose to attach the fax to the fax receipt
oFaxDocument.attachFaxToReceipt := true;

//Set the cover page type and the path to the cover page
oFaxDocument.coverPageType := Microsoft_Fax_Service_Extend.FcptSERVER; // Server
oFaxDocument.coverPage := "generic";

//Provide the cover page note
oFaxDocument.note := "Testing a fax";

//Provide the address for the fax receipt ie where the fax reciept is sent. //objFaxDocument.ReceiptAddress = "someone@example.com"

//Set the receipt type to email
oFaxDocument.receiptType := Microsoft_Fax_Service_Extend.FrtNONE;

//Specify that the fax is to be sent at a particular time
oFaxDocument.scheduleType := Microsoft_Fax_Service_Extend.FstNOW; // now //CDate converts the time to the Date data type

oFaxDocument.subject := "Today's fax 2";

//Submit the document to the connected fax server
//and get back the job ID.

oFaxDocument.connectedSubmit( oFaxServer.getInterface( IFaxServer).IFaxServer );


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 6 guests

cron