So.. your saying if you do a prnsetup and then have the user type the commands output printer type &vfilename output screen This works..
Strange.. From what Albert posted about the OUT LPT1 instead of OUT PRI.. is an issue in which there was a lot of dicussion on the list a good while back.. Didn't follow that one close enough it seems..
I remember something about people having luck with OUT LPT1: or OUT PRN or not sure if this would help or hender but...
Why not PRNSETUP \\printer_name_as_set_up_on_machine...
Or you could use this snippet.. It will present the user with a list of printers to choose from:
SET VAR vm_printers TEXT = (CVAL('Printers'))
SET VAR vm_lines INTEGER = 1
SET VAR vg_printer TEXT = NULL
WHILE (SSUB(.vm_printers, .vm_lines)) IS NOT NULL THEN
SET VAR vm_lines = (.vm_lines+1)
ENDWHILE
IF vm_lines > 20 THEN
SET VAR vm_lines = 20
ELSE
SET VAR vm_lines = (.vm_lines -1)
ENDIF
CHOOSE vg_printer FROM #LIST .vm_printers +
AT 10 32 CHKBOX 1 TITLE 'Printer Line will turn blue when chosen' +
CAPTION 'Choose Printer by Clicking on it and then OK' LINES .vm_lines +
FORMATTED
IF vg_printer = '[Esc]' THEN
SET VAR vg_printer = 'No Printer Selected!'
ENDIF
IF vg_printer <> '[Esc]' THEN
SET VAR vg_printer = (CHAR(39) + .vg_printer + CHAR(39))
ENDIF
CLEAR VAR vm%
RECALC VARIABLES
IF vg_printer <> 'No Printer Selected!' THEN
PAUSE 3 USING 'Setting up Printer'=18 CAPTION 'Please Wait...' +
AT CENTER CENTER
PRNSETUP &vg_printer
CLS
ELSE
PAUSE +
FOR 3 USING +
'No printer chosen. Printing will go to windows default printer' +
AT CENTER CENTER
ENDIF[EMAIL PROTECTED] wrote:
Jim:
Well the strange thing is that RBase reports and Microsoft Word documents print just fine to a local printer! Wouldn't a CAPTURE affect that too? It seems that it is the printing of a text file that doesn't work. In RBase, the 'typing' of the text file comes immediately after the successful printing of RBase reports, with no switching of printers in between, and the file doesn't come out even if done afterwards at the r> prompt. Doing a Prnsetup and switching printers then works.
Karen
I'm not sure, because I don't know if CAPTURE and ENDCAP are only Novell network supported commands or not but... -- Could someone who knows jump in here.
Has at any time a Capture command been run or is running at startup or ??? that redirects output.
You could do a ENDCAP and see if this might help
Jim Limburg

