Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Printing / Faxing / Scanning > Unable to fax programmitically

Reply
Thread Tools Display Modes

Unable to fax programmitically

 
 
tjlm
Guest
Posts: n/a

 
      01-09-2009

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. Unfortunatel
the exception text is "Operation failed" with no other error cod
information. Below is the relevant code in C#. Any assistance would b
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 late
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
Unable to log in log on error Windows Vista Administration 1 03-17-2008 04:18 PM
after windows firewall putting off on windows vista unable to access network and unable to on windows firewall Gurbatullah Khan Windows Vista Security 3 03-12-2008 02:59 PM
unable to see USB stephen Windows Vista Hardware 2 03-09-2008 02:20 PM
Unable to use IE7 colt1911 Windows Vista General Discussion 6 11-11-2007 06:04 PM
Unable to try to download it, it was busy and now I am unable to d Matt Carter Windows Vista General Discussion 8 06-10-2006 09:33 AM



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 47 48 49 50 51 52 53 54 55 56 57 58 59