asptoday_discuss thread: Re: Getting Default Printer through a VB component and calling from ASP
I'm experiencing the same problem as described below. My VB runs perfect
as an EXE, but can't get it to run as DLL being called from ASP page.
Error trying to use the Printer object to print directly to a printer. If
anyone has found a solution, please email me :)
thanks,
Randy
rvernon@s...
> I've created a VB component which will be called from ASP.
> The component is intended for automatic letter generation from MSWORD
and
> printing it.
> One of the functions in the component is to get the default printer on
the
> machine where the component is installed using the Printer object's
> Devicename property. It works fine on the development machine (Win 95),
> but after i register it on a machine with IIS server and call it from
the
> ASP, the function returns the error "Problem getting printer information
> from the system. Make sure the printer is setup correctly". And i
> verified that the system had printers installed on it.
>
> Any ideas on why this is so? Is there an alternative for getting the
> server's default printer?