Windows Vista Forums


Reply
Thread Tools Display Modes

Unable to fax programmitically

 
 
Guest
Posts: n/a
 
      6th February 2009, 12:26 PM

Hi,

I am trying to send a fax from my application but am having no success.
The program throws an exception when the fax is submitted. Unfortunately
the exception text is "Operation failed" with no other error code
information. Below is the relevant code in C. Any assistance would be
appreciated.

Note that I am running Vista Ultimate edition with service pack 1.

FAXCOMEXLib.FaxServer fs = new FAXCOMEXLib.FaxServer();
FAXCOMEXLib.FaxDocument fd = new FAXCOMEXLib.FaxDocument();
fs.Connect(\\"\\");
//fd.Body = \\"This is the fax text.\\";
fd.Body = \\"C:\\Testfax.txt\\";
fd.DocumentName = \\"Test Fax\\";
fd.Priority = FAX_PRIORITY_TYPE_ENUM.fptHIGH;
fd.AttachFaxToReceipt = true;
fd.Recipients.Add(\\"123-123-1234\\", \\"Test Recipient Name\\");
fd.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptNONE;
fd.Subject = \\"Test\\";
fd.Sender.City = \\"MyCity\\";
fd.Sender.Company = \\"ACME Computing\\";
fd.Sender.Country = \\"Canada\\";
fd.Sender.FaxNumber = \\"123-123-1234\\";
//This JobID[0] can be used to store the JobID of the fax job for later
reference.
//string[] JobID = (string[])fd.ConnectedSubmit(fs);
fd.ConnectedSubmit(fs);


--
tjlm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Fax Settings - Unable to name a save location for received fax Printers/Fax/Scan Support 1 14th October 2009 11:45 PM
unable to send fax using "Windows Fax and Scan" Printers/Fax/Scan Support 0 22nd March 2009 12:45 PM
Unable to send a fax via Snappy Fax General Technical 2 25th June 2008 01:45 AM
Cant connect Vista Fax & Scan to Win 2000 Microsoft Shared Fax General Technical 0 26th March 2008 01:09 PM
free fax service, Fax online, Fax, Email fax george Printers/Fax/Scan Support 0 26th December 2007 03:47 PM


All times are GMT. The time now is 09:49 AM.
Vista Forums is an independent website and is not affiliated with Microsoft Corporation.