Albert, Ah yes! In the on before generate EEP section? So if that report always is used with, in my case, (4 copies - no collation - bypass tray), I would put it in the OBG EEP? That may be the best answer for my situation.
James Belisle Making Information Systems People Friendly Since 1990 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Albert Berry Sent: Wednesday, December 10, 2014 10:22 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: printer setup 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

