I don't do things the hard way. I have the user select the printer ONCE and store the value in the database until the user decides to use a different printer for all the default printer functions. Then in the report generation I put all the PRNSETUP commands that control the printer. When the printer is changed, there is no code change involved. If the user wants to use a different printer, he/she can select it. Please note that I embed the PRNSETUP coding in the report. I don't use external code. Change printers: no problem.

Albert

On 12/9/2014 3:06 PM, Jim Belisle wrote:
Karen,

I understand I can go to the printer setup and after choosing how I want the 
printer to work, the CVAL functions can give me the information.
However within code, how does that help me?
Will the user have to go in and choose these settings when they run the report 
then my code grabs their choices into variables?
Then I make the code use the variables as below?

PRNSETUP
(they choose their settings)
Set var vtray TEXT = (CVAL('PRN_Source'))

Set var vprinter TEXT = (CVAL('currentprinter'))

Set var vcol TEXT = (CVAL('PRN_Collation'))

OPTION PRINTER +

|TRAY .vtray +

|COLLATION .vcol +

|COPIES 1 +

|PRINTER_NAME .vprinter


Sorry if this is so easy to you folks but I tried following the HELP guide, not 
the Functions.


James Belisle

Making Information Systems People Friendly Since 1990
[cid:[email protected]]



--
A democracy ..." can only exist until the majority discovers it can vote itself 
largess out of the public treasury."
Attributed to Alexander Fraser Tytler 1747-1813

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to