Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change printer from Foxbase/Foxpro program undex SCO Unix 1

Status
Not open for further replies.

kosta5

Programmer
Oct 10, 2001
2
0
0
MK
Some reports are A4 , some A3 format. How to change printer from within Foxpro 2.6 or SCO Foxbase aplication under SCO Unix, with minimum changing code.

I try to make procedure (which is assign on any function key or which is call from menu) like:

procedure whichprinter
*
* section where user will choice which printer he likes
*
myprinter=<printer name> && var myprinter contains string- printer name

! LPDEST=&myprinter; export LPDEST

return


but it didn't work.

Have any other idea?
 
While I know nothing about FPU, I'd be concerned about the actual run (!) statement. Since the semi-colon in all FoxPro products indicates a line continuation, it would never process anything after the &quot;;&quot; i.e. export LPDEST.

Rick

 
I am using this procedure
PROCEDURE lp_uxprnchg
PARAMETERS lc_printer
* lc_printer is UNIX name of printer (see lpstat -v)
STORE lc_printer TO mmprt
SET PRINT TO 'lp -d&mmprt. -s'
RETURN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top