Mike,

I bet it's an issue with Windows service permissions. By default, Cache runs
as LocalSystem, which can't reach network printers or files. When you run a
terminal session from the cache server's own cube, your process runs under
the credentials you logged on to the Windows desktop with. But when you
telnet to the server, or use a CSP process (etc) it's running under the
credentials of the Cache service.

The most secure way to change this is to set Log On As credentials for the
Cache service. Alternatively, use Cache Config Manager, Advanced,
Input/Output. Enter a Network Server Username and Password. But beware, this
is filed in the CPF file in barely-disguised form.

HTH

John Murray
George James Software
www.georgejames.com
Umlanji - model your Cach� classes


"Mike Curnow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> well my mistake, i tried it on a different machine and it did work. not
sure
> why running it from the terminal would work on the first machine, but not
> the web page. maybe the way the network printer is set up?
> as always thanks again Ramon :), i'm gonna have to buy you a beer one of
> these days for all the help.
> Mike
> "Mike Curnow" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Thanks Ramon, still have a problem though. nothing prints when i click
the
> > button. if i run the method from the terminl it works but not by
clicking
> > the button in the web page. is there a mistake on my CSP page also?
> > thanks,
> > Mike
> > "Ram�n Jim�nez" <rjimenez@@@cicla..com...do> wrote in message
> > news:[EMAIL PROTECTED]
> > > A classic pitfall :)
> > >
> > > You must preserve and restore the current device before changing it
> within
> > > CSP. A suggestion:
> > >
> > > > ClassMethod print()
> > > >
> > > > {
> > > >
> > >
> > > Set PrevDevice = $IO
> > >
> > > >    Open "|PRN|"
> > > >
> > > >    use "|PRN|" w "Testing print from a csp page",!
> > > >
> > > >    Close "|PRN|"
> > >
> > > Use PrevDevice
> > >
> > > >
> > > > }
> > >
> > > HTH,
> > >
> > > Ram�n
> > >
> > >
> >
> >
>
>


Reply via email to