TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
madinewala
NA
164
0
using Windows Fax Service in C#
Nov 17 2003 10:18 AM
Hi there, I am trying to send a fax in C# using FaxCom.dll. Below is the code and it works fine. FAXCOMLib.FaxServerClass fsc = new FAXCOMLib.FaxServerClass (); fsc.Connect("MyMachineName"); object obj = fsc.CreateDocument(@"Irfan.txt"); FAXCOMLib.FaxDoc fd = (FAXCOMLib.FaxDoc)obj; fd.FaxNumber = "027905007"; fd.RecipientName = "Irfan"; int i = fd.Send(); This sends the fax, but I have few problems. 1. I am trying to find out the page count of the fax using FAXCOMLib.FaxJob fj = new FAXCOMLib.FaxJobClass(); int iVal = fj.PageCount; but when the control comes to this point, it throws an error saying "COM object with clsid<> is either not valid or not registered." I shall appreciate if someone helped me in sorting out this error. 2. When I send the faxes, the fax is not sent immediately. it stays in the faxqueue for a while and windows fax service retries. Could someone tell me what shall i do so that upon a new request the fax is sent immediately. thanks, irfan
Reply
Answers (
0
)
C# Network Peer, Threads or Select Method
Getting Integer Values from DataReader