Solved

Microsoft Fax using MIcrosoft Studio .NET

Posted on 2010-09-02
1
323 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

831 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