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

M

Michael Welz

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
 
C

Carlos J. Quintero [VB MVP]

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
 
M

Michael Welz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top