Unable to fax programmitically

Posted: 01-09-2009, 06:41 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. 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

Unable to fax programmitically


Responses to "Unable to fax programmitically"

 
LinkBack Thread Tools Display Modes
 


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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug#341152: marked as done (initrd-tools: unable to boot after replacing devfs with udev: kernel panic, unable to create null, no console) Debian Bug Tracking System Linux / Unix 0 05-05-2008 09:00 AM
Unable to Hibernate "Power Policy Manager unable to reserve hibern Khaled Windows XP Configuration & Management 2 07-14-2005 11:53 AM
Windows XP unable to uninstall and unable to format the c:\ Paul Windows XP Basics 3 02-21-2004 03:49 PM
unable to renew the IP address from DHCP; unable to flush ARP cache Andrei Gheorghe Windows XP Network & Web 2 11-12-2003 01:00 AM
Unable to make Laptop part of a work group/Unable to remove a domain Paul Windows XP Network & Web 0 09-06-2003 09:42 AM