Don't know exactly what Forum to post this in, hope this is on topic.
I made a ActiveX.dll to Send raw data to a spooler. (Using source code available in this pdf: Then created a ASP page that calls the DLL. Tested this from the local server, and the prints come out error free. But when I access the page from a remote computer, it fails.
-----[Begin Code]----------
lResult = OpenPrinter(PrnName, hPrn, pdefs)
If (hPrn = 0) Then
lErrCode = Err.LastDllError
Call TraceMessage("GetLastError =" & CStr(lErrCode))
Exit Sub
End If
-----[END CODE]------------
GetLastError Gives a Error code of 5 when it tries to open the printer.
Can anyone offer suggestions as to what can be hanging this up.
Server = Win2k sp3 w/
(Let me know if more info is needed)
Thank You
Andrew
I made a ActiveX.dll to Send raw data to a spooler. (Using source code available in this pdf: Then created a ASP page that calls the DLL. Tested this from the local server, and the prints come out error free. But when I access the page from a remote computer, it fails.
-----[Begin Code]----------
lResult = OpenPrinter(PrnName, hPrn, pdefs)
If (hPrn = 0) Then
lErrCode = Err.LastDllError
Call TraceMessage("GetLastError =" & CStr(lErrCode))
Exit Sub
End If
-----[END CODE]------------
GetLastError Gives a Error code of 5 when it tries to open the printer.
Can anyone offer suggestions as to what can be hanging this up.
Server = Win2k sp3 w/
(Let me know if more info is needed)
Thank You
Andrew