time to submit job (objFaxDocument.ConnectedSubmit)


G

Guest

Hello,

i would like to fax with the fax service from VB or VB.NET and 99% works
fine. But regardless of which Server or client I try, it takes about 11-12
seconds to transmit the job. I tried to transmit PDF and tif documents, but
no change. Even if i compile the sample code and execute it on the server it
takes so long.
Some times we have to fax hundreds of documents, but the user have to
acknowledge every recipient and when one fax takes about 11 seconds, we can
forget it :(

The very interesting thing is, that when i Print it with user interaction
over the shared faxprinter, it takes only 1-2 seconds, even regardless of the
client / server...

Any ideas?

Thx in advice

Rene

p.s. sorry for my bad english
 
Ad

Advertisements

R

Raghavendra R [MSFT]

Do you mean the call ConnectedSubmit doesn't return until after 11-12
seconds? Note that fax is not transmitted immediately (synchronously). The
fact that ConnectedSubmit returns doesn't mean that Fax Transmission is
completed. It only means that your fax request is successfully queued at the
Fax Server & it will be sent as & when the Phone Line becomes available. So
I am not quite sure what you mean when you say user has to acknowledge every
recipient?

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
R

Rene Anstötz

Ok, let´s explain some details...

Our Application generates up to 500 demand notes for our customers. The
coworker decides by his human brain, if the customers get the demand note or
not. So, when the application transmit the demand note to the fax server, it
takes about 10-12 seconds. After this the application gets the jobid from
the faxserver. For me its clear that the fax can´t be sent yet, it´s only in
the queue for transmitting (we schedule the transmitting at 3:00 am). So the
only problem we have is the large time to transfer the documents to the fax
server (500 x 11 seconds= 5500 seconds= about 1.5 hours !!!)

It´s regardless of document type (PDF, tiff) and also regardless of
workstation or server by itself.....

my sample vb project:

Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim objSender As FaxSender
Dim JobID As Variant

'Error handling
On Error GoTo Error_Handler

objFaxServer.Connect "" 'regardless if remote server or local server

objFaxDocument.Body = "C:\Faxdocuments\test.tif"

objFaxDocument.Priority = fptHIGH
objFaxDocument.Recipients.Add "126", "---126---"
objFaxDocument.AttachFaxToReceipt = True

objFaxDocument.ScheduleType = fstSPECIFIC_TIME
objFaxDocument.ScheduleTime = CDate("3:00:00 AM")

JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
MsgBox "The Job ID is :" & JobID(0)

I compile it and execute the programm directly on the fax server, it takes
12 seconds, but if i print the same document on the fax server to the
faxprinter it takes about 1 second

Hope this explanation helps

Rene
 
R

Raghavendra R [MSFT]

Yes this gives me more insight into the problem. I think the problem might
be in rendering the body file. Try a fax with only cover page & no body &
let me know the time it takes. If this case goes fine, then it's almost
clear that the time is spent in rendering the body file. We can then look
into the associated application that renders the document.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
R

Rene Anstötz

Ok,

transferd a fax from a clinet to the server with no body file in less than a
second !!!
So it seems as you wrote that the time is needed for rendering the body
file. Ok, I agree with you at the first sight.
But i can´t understand the following situation:

Tiff image, 15kb, 1bit sw tiff/g4 encoded

First try: I transmit a tiff file for faxing with my program to the server.
That the version with the body file. It takes 12 seconds, regardless of
where i start the program (client workstation or direct on the server)

Second try: I take the same tiff file, open it with the standard windows
program (Windows picture and fax viewer) and print it there. I choose the
faxprinter in the dialog and after the last dialog of the assistent for
faxing, it takes only less than a second to transfer it to the fax-queue.

In both tries, the body file have to be rendered. One time it takes 12
seconds and in the second version it takes less than a second.
But that´s not all, you can reproduce this behaviour regardless of the file
type (tiff, pdf)

I thought it could be a security "feature". What I do is unattended printig
to the fax queue. Perhaps there is a a registry setting or a setting in the
active directory, what causes this delay....


Thx
Rene
 
R

Rene Anstötz

Ok,

additional information:

Now i´ve tried it with the faxcomlib not faxcomextlib.

Dim FS As New FAXCOMLib.FaxServer
Dim FD As New FAXCOMLib.FaxDoc


FS.Connect ("faxserver") ' My Computer's name
Set FD = FS.CreateDocument(PDF_File)
FD.FileName = "D:\Faxdocuments\test.pdf"
FD.FaxNumber = "126" ' Fax number
FD.DisplayName = "PDF"
FD.DiscountSend = 0
FD.SendCoverpage = 0
DoEvents
FD.Send
DoEvents
FS.Disconnect


Set FD = Nothing
Set FS = Nothing

it takes 12 seconds regardlesse of executing on the server itselfs or on a
client.

executing on a windows XP prof. machine with local faxservice it takes about
1 second....

I´m getting wired, why did I choose to become a developer? :)

Thx
Rene
 
Ad

Advertisements

R

Raghavendra R [MSFT]

Let's go one more step to narrow down the problem. Try with a simple file
type like .txt.

Please give me the following details as well
1. Operating System details including SPs
2. List of Fax Printers (local & remote) as seen in 'Printers & Faxes'
folder.

When you are manually printing by the time you reach the end of wizard the
rendering is already completed & hence it takes no extra time. You should
actually observe the time it takes after you select the Fax Printer & before
you get the first page of 'Fax Send Wizard'.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
Ad

Advertisements

Joined
Jan 18, 2019
Messages
1
Reaction score
0
Hi,

I want to know if I have only windows fax server and don't have configured fax. at that time what exactly do "objFaxDocument.ConnectedSubmit(objFaxServer)".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top