AnjaB

Hi,

I want to make an Application that send a document (.txt) by fax.

I didn't find a dll for do this. Can you help me

Thanks

Anja



Re: Visual C# Language Send Fax

Maheswari

Have a look on the following link. you can get the idea.

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=562108&SiteID=1






Re: Visual C# Language Send Fax


Re: Visual C# Language Send Fax

Maheswari

try the following code to send the fax.

FaxServerClass fs = new FaxServerClass();
fs.Connect("mymachine"); //specifies the machinename
object obj = fs.CreateDocument("myfilename");
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = "myfax#";
fd.RecipientName = "Tester";
int i = fd.Send();
MessageBox.Show(i.ToString());
fs.Disconnect();






Re: Visual C# Language Send Fax

AnjaB

Hi...

I try to add the FAXCOMLib.dll in the reference and I add the code.

I have this error:

Retrieving the COM class factory for component with CLSID {D73733C8-CC80-11D0-B225-00C04FB6C2F5} failed due to the following error: 80040154.

How I must do

Thanks

Anja





Re: Visual C# Language Send Fax

RizwanSharp

You can use winfax api from Windows XP and P/Invoke its function to get your job done.

Here is how to use its functions:

http://pinvoke.net/default.aspx/winfax.FaxAbort

see all the function under winfax and sure see MSDN to know the description of each method.

Note: This was inroduced on Windows XP so it'll no work on previous versions of Windows.

Sorry, I doubt if newer versions like Windows Server 2003 etc have it or not.

Best Regards,

Rizwan aka RizwanSharp