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
> >
> >
>
>