C
calan_svc
I have a dll I wrote in VB6. Basically, it can list all the printers
it
finds as well as print to a selected printer.
I created a test app in VB6, added the dll as a reference, and added
the
following in a button click:
Dim config As New MyUtility
lblList = Replace(config.PrinterList, ":", vbCrLf)
Set config = Nothing
This works fine, and returns a list of all printer devices on my
computer,
including shared network computers:
SnagIt 7
Lexmark Z22-Z32 Color Jetprinter
\\ME-3\Dell Photo Printer 720
\\ENG\Epson 2
\\big\E834450
\\big\hp color LaserJet 3500.
Heres the problem...when I create this same object in an ASP page
(same
computer), IIS is only returning the printers that are physically
connected
to this PC.
set config = CreateObject("MyDLL.MyUtility")
response.write replace(config.PrinterList,":","<br>")
set config = nothing
which returns:
SnagIt 7
Lexmark Z22-Z32 Color Jetprinter
Why does the dll not see network printers when called from ASP, but it
does
when called from a VB app? I've checked all the permissions for the
class in
registry, etc.
Thanks in advance!
Calan
it
finds as well as print to a selected printer.
I created a test app in VB6, added the dll as a reference, and added
the
following in a button click:
Dim config As New MyUtility
lblList = Replace(config.PrinterList, ":", vbCrLf)
Set config = Nothing
This works fine, and returns a list of all printer devices on my
computer,
including shared network computers:
SnagIt 7
Lexmark Z22-Z32 Color Jetprinter
\\ME-3\Dell Photo Printer 720
\\ENG\Epson 2
\\big\E834450
\\big\hp color LaserJet 3500.
Heres the problem...when I create this same object in an ASP page
(same
computer), IIS is only returning the printers that are physically
connected
to this PC.
set config = CreateObject("MyDLL.MyUtility")
response.write replace(config.PrinterList,":","<br>")
set config = nothing
which returns:
SnagIt 7
Lexmark Z22-Z32 Color Jetprinter
Why does the dll not see network printers when called from ASP, but it
does
when called from a VB app? I've checked all the permissions for the
class in
registry, etc.
Thanks in advance!
Calan