473,480 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Send fax

Hi,
I'm looking for a way to send fax from my vb.net windows solution.

any idea please?
Thanks.
Dec 2 '05 #1
3 4674
The easiest way would be for you to use a third party fax API solution.
Something like this:

http://www.interfax.net/en/dev/

"toufik" <to****@hotmail.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
Hi,
I'm looking for a way to send fax from my vb.net windows solution.

any idea please?
Thanks.

Dec 2 '05 #2
If you dont want to use a third party API, you can always use windows
fax viewer.. its very simple and very steady. I have used it for my
project and it works just great. You will also be able to receive
faxes. Programming is very very simple.

http://msdn.microsoft.com/library/de...using_3u5v.asp

That will help you.

This is the code in VB it can be modified to .net (see how simple it
is)

'Initialise a few things
'sending Fax
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim objSender As FaxSender
Dim JobID As Variant

'Receiving Fax
Dim WithEvents objFaxServer1 As FAXCOMEXLib.FaxServer
Attribute objFaxServer1.VB_VarHelpID = -1

Private Sub Form_Load()
objFaxServer.Connect ""
objFaxServer.ListenToServerEvents fsetIN_ARCHIVE Or fsetACTIVITY Or
fsetCONFIG Or fsetDEVICE_STATUS Or fsetFXSSVC_ENDED Or fsetIN_QUEUE Or
fsetINCOMING_CALL Or fsetNONE Or fsetOUT_ARCHIVE Or fsetOUT_QUEUE
'job entered archive
Set objFaxServer1 = objFaxServer
End Sub

Private Sub Command1_Click()
'Send a file-- sending COMPLETE
On Error GoTo Error_Handler
objFaxDocument.Body = Trim(Text1.Text) 'This should point to the
document or img to be sent
objFaxDocument.DocumentName = "My First Fax"
objFaxDocument.Priority = fptHIGH
objFaxDocument.Recipients.Add "TO_THE_NUMBER_YOU_WANT", "Bud"
objFaxDocument.AttachFaxToReceipt = True
objFaxDocument.Note = "Here is the info you requested"
objFaxDocument.Subject = "Today's fax"
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
Exit Sub

Dec 2 '05 #3
T'll try this
Thanks a lot friends

<fu********@gmail.com> wrote in message
news:11********************@g49g2000cwa.googlegrou ps.com...
If you dont want to use a third party API, you can always use windows
fax viewer.. its very simple and very steady. I have used it for my
project and it works just great. You will also be able to receive
faxes. Programming is very very simple.

http://msdn.microsoft.com/library/de...us/fax/faxusin
g_3u5v.asp
That will help you.

This is the code in VB it can be modified to .net (see how simple it
is)

'Initialise a few things
'sending Fax
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim objSender As FaxSender
Dim JobID As Variant

'Receiving Fax
Dim WithEvents objFaxServer1 As FAXCOMEXLib.FaxServer
Attribute objFaxServer1.VB_VarHelpID = -1

Private Sub Form_Load()
objFaxServer.Connect ""
objFaxServer.ListenToServerEvents fsetIN_ARCHIVE Or fsetACTIVITY Or
fsetCONFIG Or fsetDEVICE_STATUS Or fsetFXSSVC_ENDED Or fsetIN_QUEUE Or
fsetINCOMING_CALL Or fsetNONE Or fsetOUT_ARCHIVE Or fsetOUT_QUEUE
'job entered archive
Set objFaxServer1 = objFaxServer
End Sub

Private Sub Command1_Click()
'Send a file-- sending COMPLETE
On Error GoTo Error_Handler
objFaxDocument.Body = Trim(Text1.Text) 'This should point to the
document or img to be sent
objFaxDocument.DocumentName = "My First Fax"
objFaxDocument.Priority = fptHIGH
objFaxDocument.Recipients.Add "TO_THE_NUMBER_YOU_WANT", "Bud"
objFaxDocument.AttachFaxToReceipt = True
objFaxDocument.Note = "Here is the info you requested"
objFaxDocument.Subject = "Today's fax"
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
Exit Sub

Dec 2 '05 #4

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

Similar topics

15
3266
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
0
913
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
6
3244
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
13
8049
by: Manfred Braun | last post by:
Hi All, I am trying to understand the blocking method socket.Send(). The call blocks as expected, but does this mean, it returnes after the underlying TCP layer got a confirmation, that the send...
3
4535
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
14
9099
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
3
2172
by: ultr | last post by:
Hello, I have read that send() may not send whole message and returns the nuber of bytes sent, so that we can handle the rest of the message. Is it true, because i have tested sending even 1MB...
11
7672
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running...
15
8559
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
4
7667
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6895
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...
0
5326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4476
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
2977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1296
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
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
176
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.