This is the tact that I tried.  It seems to work okay, until I put in
the spooler options.  If I put in spooler options, then my session
gets disconnected.  Is there a log of why this happens that I can view
somewhere?

On 4/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> "jjuser ud2" <[EMAIL PROTECTED]> wrote on 11 Apr 2006 14:06:16 -0400
>
> > I'd like to store a currently logged-in user's printer
> > settings (GETPTR?), change them for the output of a
> > report(SETPTR), and then restore them (SETPTR again?).  All
> > of my previous attempts at this have been unsuccessful --
> > could somebody point me in the right direction, please?
> > I've read the documentation for both and I feel like I'm
> > missing something.
>
> GETPTR is a function that returns the current setting for the specified
> print unit.  I use the following code as needed to change and restore the
> default printer (unit 0) in UniData:
>
> SAVE.PTR = GETPTR(0)
> EXECUTE "SETPTR 0,..."
> ...
> EXECUTE "SETPTR ":SAVE.PTR:",BRIEF"
>
> The first EXECUTE sets whatever I need, and the second restores it.  The
> ",BRIEF" parameter is added to avoid displaying and having to confirm the
> changes.
>
> --Tom Pellitieri
>  Century Equipment
>  Toledo, Ohio
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to