JJ,

Here is the logic I use.

GET.PTR.OPTIONS:
        PTR.INFO = GETPTR(PTR.UNIT)
      SAVE.PTR = PTR.INFO
        RETURN
        !
CHANGE.PTR.OPTIONS:
      * Change PTR.INFO Logic Here...
      GOSUB SET.PTR.OPTIONS
      RETURN
      !
SET.PTR.OPTIONS:
        SET.PTR.CMD = "SETPTR ":PTR.INFO    
        DATA "Y"
        PERFORM SET.PTR.CMD CAPTURING BUFF
        IF @SYSTEM.RETURN.CODE < 0 THEN PRINT BUFF
      RETURN
      !
RESTORE.PTR.OPTIONS:
      PTR.INFO = SAVE.PTR
      GOSUB SET.PTR.OPTIONS
      RETURN
      !

Thanks,
David A. Green
DAG Consulting


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jjuser ud2
Sent: Tuesday, April 11, 2006 11:06 AM
To: [email protected]
Subject: Re: [U2] [UD] Setptr

Hey there :)  Regarding SETPTR...

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.

I'm also not sure if this should be on this list, or the SBS list... ^_^

--JJ
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to