Sending Fax with .NET

  • Thread starter Thread starter Laurahn
  • Start date Start date
L

Laurahn

Hi:

I'm looking for a solution for sending fax throught Winforms and VS 2005
(vb). But if anyone have some example, it dosen't matter if the code is C#.

I know exits a library "Interop.FAXCONTROLLib" but i dont know how use it.

thanks. =)
 
Thanks.

Can you give me some code example (vb oc#)? Or can you tell me the class
name? I have seen a little in VS Documentation. But an example will be
great. =)
 
Laurahn said:
Thanks.

Can you give me some code example (vb oc#)? Or can you tell me the class
name? I have seen a little in VS Documentation. But an example will be
great. =)

eFax is not a class - it's a service provided by efax company. You send
email to some special address and the body of that email gets faxed over
to a phone number you specified

Take a look at www.eFax.com
 
Hi Laurahn,

Based on my understanding, you're using standard Windows Fax Service and
planing to develop a WinForms application with VS 2005 to programmatically
fax a document. If I have misunderstood anything, please feel free to reply
here.

You could use fax service API to send fax in your application. Here is the
starting point for the Fax APIs:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
portal_9nol.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_5s8n.asp

First, there are no real samples in MSDN showing how to using the Fax
interfaces from a Managed language. The Fax documentation existed before
C# or VB.Net existed. However, using Fax from C# or VB.Net is very similar
to doing it from VB. You need to add a reference to the FaxComEx object
within the Visual Studio IDE and then reference the FAXCOMEXLib namespace.

Next, there are several programmatic interfaces to the Fax Service. There
is a "C" style API and two different COM interfaces. I strongly recommend
that you use FaxComEx, which is the most recent and by far the most robust
version. However, this is only supported on Windows XP and later. If you
must have support for Windows 2000, then you should investigate the FaxCom
interfaces. Here are some links that discuss the different options.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_18s3.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_699l.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
legacy_9lf4.asp

The following link provide a VB code example of sending a fax.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
using_27co.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
using_8dyw.asp

I think it might help more to introduce the following link to you, which
discusses "COM Interop from VB.NET".

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/
vaconCOMInteroperability.asp

I also found some VB.NET and C# code samples as follows.

http://www.pcreview.co.uk/forums/thread-1477361.php
http://www.thescripts.com/forum/thread273119.html

Hope this helps.
If you have any questions, please feel free to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks for the information.

Linda Liu said:
Hi Laurahn,

Based on my understanding, you're using standard Windows Fax Service and
planing to develop a WinForms application with VS 2005 to programmatically
fax a document. If I have misunderstood anything, please feel free to
reply
here.

You could use fax service API to send fax in your application. Here is the
starting point for the Fax APIs:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
portal_9nol.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_5s8n.asp

First, there are no real samples in MSDN showing how to using the Fax
interfaces from a Managed language. The Fax documentation existed before
C# or VB.Net existed. However, using Fax from C# or VB.Net is very similar
to doing it from VB. You need to add a reference to the FaxComEx object
within the Visual Studio IDE and then reference the FAXCOMEXLib namespace.

Next, there are several programmatic interfaces to the Fax Service. There
is a "C" style API and two different COM interfaces. I strongly recommend
that you use FaxComEx, which is the most recent and by far the most robust
version. However, this is only supported on Windows XP and later. If you
must have support for Windows 2000, then you should investigate the FaxCom
interfaces. Here are some links that discuss the different options.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_18s3.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
about_699l.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
legacy_9lf4.asp

The following link provide a VB code example of sending a fax.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
using_27co.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/fax/fax
using_8dyw.asp

I think it might help more to introduce the following link to you, which
discusses "COM Interop from VB.NET".

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/
vaconCOMInteroperability.asp

I also found some VB.NET and C# code samples as follows.

http://www.pcreview.co.uk/forums/thread-1477361.php
http://www.thescripts.com/forum/thread273119.html

Hope this helps.
If you have any questions, please feel free to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
Hi Laurahn,

How about your solving the problem now?

If the problem isn't resolved or you need our further assistance, please
feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!


Sincerely,
Linda Liu
Microsoft Online Community Support
 
Back
Top