?
Solved

Microsoft Fax using MIcrosoft Studio .NET

Posted on 2010-09-02
1
Medium Priority
?
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

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

Did you find DISCONNECT method in objFaxServer ??

Try to use it to disconnect.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

771 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