Re: Win32::Printer::Enum::Printer($server)





Sisyphus wrote:
> "Brian McCauley" <nobull@xxxxxxxx> wrote in message
> news:d9e9bm$bbs$1@xxxxxxxxxxxxxxxxxxxxx
> >
> > ... Win32::Printer::Enum::Printer() stubbonly returns nothing.
> >
>
> Can't help a lot, if at all - I don't have a printer. (If you get stuck you
> might find some help on ActiveState's perl-win32-users list.)

> Anyway, you might find it useful to replace the above code with:
>
> my $return = Win32::Printer::_EnumPrinters($flag, $server);
> unless ($return)
> {croak "$flag : $server: ERROR: Cannot enumerate printers!
> ${\Win32::Printer::_GetLastError()}";
> }

Thanks for that - I may try that later. In the short term I've solved
my immediate problem by parsing a REGEDIT export.

Thanks also to Stephen Patterson - if I need to automate this process I
may use the registry modules but the registry layout is not so simple
because the server is actually a virtual server in a cluster config.

.



Relevant Pages

  • Re: ASPX page in SharePoint Portal
    ... however i am still stuck!! ... i have create a new virtual server ... Parser Error Message: The current trust level does not allow use of the ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ASPX page in SharePoint Portal
    ... however i am still stuck!! ... i have create a new virtual server ... Parser Error Message: The current trust level does not allow use of the ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Need help installing Solaris 9 x86 on MS Virtual PC
    ... >Solaris x86 plus its a much better product IMHO. ... I'm stuck with Virtual PC and Virtual Server for now. ... I've seen several posts from people who've gotten Solaris 9 to work on ...
    (comp.unix.solaris)