Problem sending a fax

P

Peter Haider

Hi newgroup,

i struggle with a problem with windows 2000 fax server running under my ASP
Web application

The sending of an fax - like the example below - works manually very well
(with file open and print to the fax printer) - logged on as a normal user.

But my code under ASP doesnt work (access rights for directory, to read the
file and the fax server is given to the anonymous user)

Here is the VB Script Code:

Dim Faxserver
Dim FaxDoc
Dim JobNo
Dim Dateiname
Set Faxserver = Server.Createobject("Faxserver.Faxserver")
FaxServer.Connect("gericom.sbs.office")

Filename = server.MapPath("Orders/10173.pdf")
Set FaxDoc = FaxServer.CreateDocument(Filename)

FaxDoc.SendCoverpage = 0
FaxDoc.RecipientName = "Arnold"
FaxDoc.SenderName = "Peter"
FaxDoc.FaxNumber = "12345678"
FaxDoc.SenderFax = "87654321"
JobNo = FaxDoc.Send()
Set FaxDoc = Nothing
FaxServer.Disconnect()
Set FaxServer = Nothing

When i start this programm, the system seams to hang and after a short time,
there appears an error 0x8007000D (Data is invalid??) at the line
FaxDoc.Send()

Has anyone of you a tip for me?

Regards Peter Haider
 
C

Chandrasekar [MSFT]

The system from which you are sending the fax should contain a pdf reader
since you are sending a pdf file as a fax. Only a document that can be
printed to a printer can be faxed using the windows fax services. Hence
please install a pdf reader on the machine and try again. Incase you
already have a pdf reader installed, check whether the .pdf extension files
are associated with that program. If yes and still you are not able to fax,
then please reply back.

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

Peter Haider

Hello,
today i have seen, taht you reply to my request with faxing a document.
I have installed version 5 of adobe acrobot on my development machine /
server
pdf files are associated with with that.
execute is permitted for the anonymos user under asp
its strange, but if a logon as a normal user and run the same application
from vb it works well.
only with vbscript / asp and logged as anonymus user i have theese troubles.
Any idea?
Best regards
Peter Haider
 
A

Ananda Sarkar [MSFT]

When you try as an anonymous user, does faxing work for other type of
documents (other than pdf) or it is failing for all faxes. If it's the
latter, then the permissions on FAX may not include Anonymous Users. Try the
following:

go to start->Printers, right click on Fax, click on Properties, go to
security tab and add an ACE for Anonymous User. This however comes with the
security risk of letting anonymous users using that fax printer. So, beware
of those implications before you opt for this option.

Thanks,
Anand

--
Ananda Sarkar
Microsoft Printing, Imaging & 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.'
 

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

Top