Printer Forums

Printer Forums - Printing Help and Support > Newsgroups > Printer Newsgroups > Windows Vista Printing > Unable to fax programmitically

Reply
Thread Tools Display Modes

Unable to fax programmitically

 
 
tjlm
Guest
Posts: n/a

 
      01-09-2009, 05: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
 
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 install Intel Windows 2000 driver arch23 Printer Drivers 4 03-03-2005 08:44 PM
Unable to print after SP4 install Ozzie Windows 2000 Printing 1 05-10-2004 07:37 PM
Unable to Print to 2000pro using ICS Chu Rey Windows 98 Printing 0 10-28-2003 05:17 PM
Access Denied, Unable to connect... David Mans Windows 2000 Printing 0 08-12-2003 10:32 PM
Re: unable to print PattyL Windows 98 Printing 0 08-06-2003 10:02 PM



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