Solved

Microsoft Fax using MIcrosoft Studio .NET

Posted on 2010-09-02
1
325 Views
Last Modified: 2012-05-10
Please refer to the coding below:
After I restarted my window and I excuted the code, the fax send succesfully for first time.
It failed for subsequence execution.
Any suggestion?
Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
        Dim objFaxServer As New FAXCOMEXLib.FaxServer

        Try
            objFaxDocument.Body = "c:\test.pdf"
            objFaxDocument.DocumentName = "RFQ"
            objFaxDocument.Recipients.Add("123333", "RFQ")
            objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptNORMAL
            objFaxDocument.Subject = "RFQ"
            objFaxDocument.Sender.LoadDefaultSender()
            objFaxDocument.Submit("")

        Catch ex As Exception
            Response.Write(ex.Message)
        Finally
            objFaxDocument = Nothing
            objFaxServer = Nothing
        End Try

Open in new window

0
Comment
Question by:chwong67
1 Comment
 
LVL 19

Accepted Solution

by:
Shahan Ayyub earned 500 total points
ID: 33591727
Hi!

Did you find DISCONNECT method in objFaxServer ??

Try to use it to disconnect.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question