Advertisement

11.10.2004 at 05:32AM PST, ID: 21201510
[x]
Attachment Details

Right Fax Error "Problem Converting Fax Body or Cover Sheet"

Asked by gswitz in Microsoft Visual Basic.Net

Tags: , , , ,

Below is the code I use to send the fax.  It works 60% of the time.  When it doesn't work, I get an error from Right Fax that says "Problem Converting Fax Body or Cover Sheet" with the data "Error 2 occurred while trying to load the images for the fax.  The system cannot find the file specified."  The files I attach are left on the drive for an hour after faxing.  They all open properly.  All of the faxes include one text file and one pdf.  All of them are identical in my testing, but only 60% are sent and 40% return this error...

I have tried adding thread.sleep calls in various places, but even with sleep times of 10 seconds after attaching and after sending, the error occurs.

Here is my code...

                RFXServ.OpenServer()
                RFXDoc = RFXServ.CreateObject(RFCOMAPILib.CreateObjectType.coFax)
                With RFXDoc
                    'Populate the basic data... we already know that we have a non-null fax number,
                    'so no need to check again...
                    .ToFaxNumber = dr.FaxNumber
                    With RFXServ.AuthorizationUser
                        'Effectively, we do not want any feedback coming back from the fax server telling
                        'us anything about the sending status...
                        .SendNotifyOnIncompleteFirstTime = False
                        .SendNotifyOnIncompletePeriodically = False
                        .SendNotifyOnNoHoldForPreview = False
                        .SendNotifyOnSendFailedWillRetry = False
                        .SendNotifyOnSendFailure = False
                        .SendNotifyOnSendHeldForApproval = False
                        .SendNotifyOnSendingFirstTime = False
                        .SendNotifyOnSendFailure = False
                        .SendNotifyOnSendingPeriodically = False
                        .SendNotifyOnSentSuccessfully = False
                    End With

                    If dr.IsFaxToNameNull = False Then
                        .ToName = dr.FaxToName
                    End If
                    If dr.IsFaxFromNameNull = False Then
                        .FromName = dr.FaxFromName
                    End If
                    For Each tblDocumentsToIncludeRow In mr.GetChildRows("MessageDocumentsToInclude")
                        'This line attaches the document to the fax... we do not delete on sending
                        'because we may send to multiple recipients.
                        .Attachments.Add(tblDocumentsToIncludeRow.DocumentName, RFCOMAPILib.BoolType.False)
                        Thread.Sleep(cGeneralParametersRow.SleepMilisecondsAfterFaxing)
                    Next
                    .Send()
                    'We need to give the fax server time to pickup and convert the documents before we delete them...
                    Thread.Sleep(cGeneralParametersRow.SleepMilisecondsAfterFaxing)
                    RFXServ.CloseServer()
                End With
                Return TrueStart Free Trial
 
Loading Advertisement...
 
[+][-]11.10.2004 at 10:56PM PST, ID: 12552471

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.11.2004 at 04:07AM PST, ID: 12553759

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2004 at 06:18AM PST, ID: 12857273

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.20.2004 at 08:11AM PST, ID: 12867678

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.22.2004 at 03:30PM PST, ID: 12888527

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: converting, fax, body, problem, cover
Sign Up Now!
Solution Provided By: modulo
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32