"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
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to