473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sending Fax from vb.net with Microsoft Fax Service Extended COM Type Libary

Daer NG,

with the following code snippet i try to send a fax.
in a vb6 application it works fine.
From my .net app i get no response.
Can enybody help?
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer

Try
objFaxDocument.Body = "c:\testfax.doc"
objFaxDocument.DocumentName = "FestFax"
objFaxDocument.Recipients.Add("123333232", "Test")
objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptNORMAL
objFaxDocument.Subject = "Festfax"
objFaxDocument.Sender.LoadDefaultSender()
objFaxDocument.Submit("")

Catch ex As Exception
Response.Write(ex.Message)
End Try

Thx Michael
Jan 9 '06 #1
2 9230
Hi Michael,

No response in which line of code? A hang? Do you get some exception in the
catch block?

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com

"Michael Welz" <mi**********@coastcom.de> escribió en el mensaje
news:uM**************@TK2MSFTNGP14.phx.gbl...
Daer NG,

with the following code snippet i try to send a fax.
in a vb6 application it works fine.
From my .net app i get no response.
Can enybody help?
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer

Try
objFaxDocument.Body = "c:\testfax.doc"
objFaxDocument.DocumentName = "FestFax"
objFaxDocument.Recipients.Add("123333232", "Test")
objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptNORMAL
objFaxDocument.Subject = "Festfax"
objFaxDocument.Sender.LoadDefaultSender()
objFaxDocument.Submit("")

Catch ex As Exception
Response.Write(ex.Message)
End Try

Thx Michael

Jan 9 '06 #2
Hi Carlos,

now i tryed it with a pdf file as body and it works fine.
i don't know why a doc file doesen't work.
Is it possible to fax a doc file??

Thx

Michael

"Carlos J. Quintero [VB MVP]" <ca*****@NOSPAMsogecable.com> schrieb im
Newsbeitrag news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi Michael,

No response in which line of code? A hang? Do you get some exception in
the catch block?

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com

"Michael Welz" <mi**********@coastcom.de> escribió en el mensaje
news:uM**************@TK2MSFTNGP14.phx.gbl...
Daer NG,

with the following code snippet i try to send a fax.
in a vb6 application it works fine.
From my .net app i get no response.
Can enybody help?
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer

Try
objFaxDocument.Body = "c:\testfax.doc"
objFaxDocument.DocumentName = "FestFax"
objFaxDocument.Recipients.Add("123333232", "Test")
objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptNORMAL
objFaxDocument.Subject = "Festfax"
objFaxDocument.Sender.LoadDefaultSender()
objFaxDocument.Submit("")

Catch ex As Exception
Response.Write(ex.Message)
End Try

Thx Michael


Jan 9 '06 #3

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

Similar topics

6
by: Owen | last post by:
I am sending email using CDO but it only seems to work when the "To" address is within the same domain as mine. When I send to an outside domain (eg. yahoo.com) the mail simply does not reach...
1
by: A.J. | last post by:
I'm writing an application that will run as a Web Service. It will communicate with some old COM DLLs. These COM objects need to be called on their own thread. In a regular Web Service I would...
0
by: Fabricio de Reuter Sperandio | last post by:
Hi everybody, I did an ASP.NET application to send a fax using the Extended Fax Service COM API. I am running Windows XP. The problem is: When I send Text files, it mens, the FaxDocument.Body...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
2
by: Kups | last post by:
Hi! I have a service and client that use WSE 2.0 and soap.tcp. Both are behind firewalls. Client connects to a public machine's tcp port which is redirected to service. If I send a request ...
3
by: WT | last post by:
Hello, Looking for a way to automate fax sending from a web site, I found a sample in the Application Platform toolkit. But it need a com type library that I can't find: FAXCOMEXLib, where could...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
8
by: Mike Owen | last post by:
Hi, I am using the following code to send email on a Windows 2003 Web Server: Imports System.Net.Mail ........ Dim msgmail As New MailMessage msgmail.To.Add(New...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.