Programmatic Fax Problem

Y

Yanir

I've been developing a asp.net site that sends a fax generated by a
script. I use the faxcomex object to send the fax.

I create an html file and save it with a .doc extension attatch it to
the body when I call the script. When the script is executed word
launches and prints to the fax-modem and it's on it's way. This works
with other applications that support the print verb command.


One problem is when I copy the files to my test IIS from the debug IIS.

the page just hangs.


here is my fax function:
---------------------------------------------------------------------------­----------------

Dim faxServer As New Object
Dim faxDocument As New Object


faxServer = CreateObject("FAXCOMEX.FaxServer")
faxDocument = CreateObject("FAXCOMEX.Faxdocument")
faxServer.connect("")
faxDocument.body = "c:\temp_proposal.doc"
faxDocument.documentname = "Proposal"
faxDocument.Recipients.Add(faxnum)
Dim JobID = faxDocument.ConnectedSubmit(faxServer)
faxServer = Nothing
faxDocument = Nothing
---------------------------------------------------------------------------­----------------



I suspect it may be a permissions problem but I gave asp.net and IUSR
administrative access to see if that resolved it and nothing.


Additionaly, I plan to put this on my windows 2003 server which doesn't

have word or other applications to launch to execute the print, I
wouldn't those aps constantly launching anyway.
Any suggestions for either problem would be greatly appreciated.


-Yanir
 
R

Russ Valentine [MVP-Outlook]

You'll want to post in one of the programming groups. You won't find answers
here, I suspect.

--
Russ Valentine
[MVP-Outlook]
I've been developing a asp.net site that sends a fax generated by a
script. I use the faxcomex object to send the fax.

I create an html file and save it with a .doc extension attatch it to
the body when I call the script. When the script is executed word
launches and prints to the fax-modem and it's on it's way. This works
with other applications that support the print verb command.


One problem is when I copy the files to my test IIS from the debug IIS.

the page just hangs.


here is my fax function:
---------------------------------------------------------------------------­----------------

Dim faxServer As New Object
Dim faxDocument As New Object


faxServer = CreateObject("FAXCOMEX.FaxServer")
faxDocument = CreateObject("FAXCOMEX.Faxdocument")
faxServer.connect("")
faxDocument.body = "c:\temp_proposal.doc"
faxDocument.documentname = "Proposal"
faxDocument.Recipients.Add(faxnum)
Dim JobID = faxDocument.ConnectedSubmit(faxServer)
faxServer = Nothing
faxDocument = Nothing
---------------------------------------------------------------------------­----------------



I suspect it may be a permissions problem but I gave asp.net and IUSR
administrative access to see if that resolved it and nothing.


Additionaly, I plan to put this on my windows 2003 server which doesn't

have word or other applications to launch to execute the print, I
wouldn't those aps constantly launching anyway.
Any suggestions for either problem would be greatly appreciated.


-Yanir
 
Y

Yanir

I'll certainly do that, just hoping an outlook guru might have some
insight others might not. Faxcomex is used by outlook in xp and later.
 
K

Ken Slovak - [MVP - Outlook]

I don't think any of the Outlook developers would have a clue about this. I
certainly don't. It's more a library that might be used by Outlook but isn't
really Outlook related. I think it might be better to post in a Windows
group, that library might be related to one of the Windows faxing services.




I'll certainly do that, just hoping an outlook guru might have some
insight others might not. Faxcomex is used by outlook in xp and later.
 
P

Peter Jamieson

FWIW the approach I developed to help people mailmerge to traditional
faxmodems seems to work, but it uses a separate "print to TIFF" step. The
code's more complicated than you need, but it's at

http://tips.pjmsn.me.uk/t0001.htm

if you want to try something slightly different. As far as I know the
version that uses faxcomex has not been tried as much as the earlier
version.

Peter Jamieson

I've been developing a asp.net site that sends a fax generated by a
script. I use the faxcomex object to send the fax.

I create an html file and save it with a .doc extension attatch it to
the body when I call the script. When the script is executed word
launches and prints to the fax-modem and it's on it's way. This works
with other applications that support the print verb command.


One problem is when I copy the files to my test IIS from the debug IIS.

the page just hangs.


here is my fax function:
---------------------------------------------------------------------------­----------------

Dim faxServer As New Object
Dim faxDocument As New Object


faxServer = CreateObject("FAXCOMEX.FaxServer")
faxDocument = CreateObject("FAXCOMEX.Faxdocument")
faxServer.connect("")
faxDocument.body = "c:\temp_proposal.doc"
faxDocument.documentname = "Proposal"
faxDocument.Recipients.Add(faxnum)
Dim JobID = faxDocument.ConnectedSubmit(faxServer)
faxServer = Nothing
faxDocument = Nothing
---------------------------------------------------------------------------­----------------



I suspect it may be a permissions problem but I gave asp.net and IUSR
administrative access to see if that resolved it and nothing.


Additionaly, I plan to put this on my windows 2003 server which doesn't

have word or other applications to launch to execute the print, I
wouldn't those aps constantly launching anyway.
Any suggestions for either problem would be greatly appreciated.


-Yanir
 

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