|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
sending Fax from vb.net with Microsoft Fax Service Extended COM Type Libarywith 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? -- Show quoteHide quoteBest 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" <michael.w***@coastcom.de> escribió en el mensaje news:uMDN3KQFGHA.2040@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 > > 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 Show quoteHide quote "Carlos J. Quintero [VB MVP]" <carlosq@NOSPAMsogecable.com> schrieb im Newsbeitrag news:%23ySTyPTFGHA.3984@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" <michael.w***@coastcom.de> escribió en el mensaje > news:uMDN3KQFGHA.2040@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 >> >> > > |
|||||||||||||||||||||||