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

  • Thread starter Thread starter Michael Welz
  • Start date Start date
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
 
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
 
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
 
Back
Top