- Joined
- Sep 22, 2005
- Messages
- 7
- Reaction score
- 0
My ASP Code to Send a Fax on the Fax Servers' Web Server (so the fax server and the webserver are the same).
toNumber = request.querystring("toNumber")
Set objFaxServer = Server.CreateObject ("FaxComEx.FaxServer")
Set objFaxDocument = Server.CreateObject ("FaxComEx.FaxDocument")
objFaxServer.Connect ""
objFaxDocument.Priority = 1
objFaxDocument.Recipients.Add(toNumber)
objFaxDocument.ScheduleType = 0
objFaxDocument.Body = "C:\wwwroot\SquireFax\Faxes\F\fake-test, johnny\initialLetterToAttorney.doc"
response.write "Sending Fax..."
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
response.write "Fax Sent"
Produces:
Sending Fax...
FaxComEx.FaxDocument.1 error '80070002'
Operation failed.
/sendfax.asp, line 26
The fax printer is shared with everyone getting full access to it.
I have word installed. I checked that the file association supports the printTo Verb, as in the Win2k3 Documentation. Its settings are:
Application Used: "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" /n /dde %1
DDE Message: [REM _DDE_Minimize][FileOpen("%1")][FilePrintSetup "%2 on p",.DoNotSetAsSysDefault=1][FilePrint 0][DocClose 2][FilePrintSetup ""]
Application: WinWord
DDE Application Not Running: [FileOpen("%1")][FilePrintSetup "%2 on p",.DoNotSetAsSysDefault=1][FilePrint 0][FileExit 2]
Topic: System
If I manually open the document in Word and click Print to the Fax Printer it gets sent out fine, just not through ASP. Cool, thanks.
toNumber = request.querystring("toNumber")
Set objFaxServer = Server.CreateObject ("FaxComEx.FaxServer")
Set objFaxDocument = Server.CreateObject ("FaxComEx.FaxDocument")
objFaxServer.Connect ""
objFaxDocument.Priority = 1
objFaxDocument.Recipients.Add(toNumber)
objFaxDocument.ScheduleType = 0
objFaxDocument.Body = "C:\wwwroot\SquireFax\Faxes\F\fake-test, johnny\initialLetterToAttorney.doc"
response.write "Sending Fax..."
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
response.write "Fax Sent"
Produces:
Sending Fax...
FaxComEx.FaxDocument.1 error '80070002'
Operation failed.
/sendfax.asp, line 26
The fax printer is shared with everyone getting full access to it.
I have word installed. I checked that the file association supports the printTo Verb, as in the Win2k3 Documentation. Its settings are:
Application Used: "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" /n /dde %1
DDE Message: [REM _DDE_Minimize][FileOpen("%1")][FilePrintSetup "%2 on p",.DoNotSetAsSysDefault=1][FilePrint 0][DocClose 2][FilePrintSetup ""]
Application: WinWord
DDE Application Not Running: [FileOpen("%1")][FilePrintSetup "%2 on p",.DoNotSetAsSysDefault=1][FilePrint 0][FileExit 2]
Topic: System
If I manually open the document in Word and click Print to the Fax Printer it gets sent out fine, just not through ASP. Cool, thanks.