Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista print fax & scan

Vista - Unable to fax programmitically

Reply
 
Old 01-09-2009   #1 (permalink)


Vista Ultimate
 
 

Unable to fax programmitically

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);

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
unable to RAS Network & Sharing
Unable to log in Vista account administration
after windows firewall putting off on windows vista unable to access network and unable to on windows firewall Vista security
unable to see USB Vista hardware & devices
Unable to try to download it, it was busy and now I am unable to d Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46