473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sending fax in C# using FaxCom.dll - Windows Fax Service

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
Nov 15 '05 #1
0 8444

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DraguVaso | last post by:
Hi, I need to send some emails in my Windows Service (VB.NET 2005). I made for that a simple class, which works fine when I use it in a Windows Forms application. Although: When I put it in...
0
by: Suresh | last post by:
I'm using "Faxcom.dll" to send the fax in asp.net. But when connecting to fax server, I'm getting the following error. "System.Runtime.InteropServices.COMException: Unspecified error" I'm...
3
by: Jason E. Trout | last post by:
I created at VB.NET application that sends e-mail via the System.Web.Mail namespace. At the application level, the e-mails send out fine. When I created the application as a Windows service, the...
4
by: OpticTygre | last post by:
I have a windows service, and a separate desktop application used to configure settings for the service. I'd also like to use the windows application as a sort of debug, or notification window, to...
0
by: Ahmad Atawneh | last post by:
I have the following problem: i have a client (windows service) calling a web service using an 128kbps connection line. The client will frequently send records of approximately 300KB to the web...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
8
by: Amol | last post by:
Hi , I am developing a web application.I need an interface in my application which will allow the user to send the fax domestic /international.I dont want to use 3rd party tool /service .Does...
7
by: bharathreddy | last post by:
Dear ALL, I am trying to work with FAXCOM.dll to send fax. But here i am getting an error at send() function. Here is the code: ----------------------- FAXCOMLib.FaxServer fxsrv = new...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.