>I may be in the wrong place, but I thought I'd start here.
>
>I'm migrating a program written in FP2.6 for DOS from a Windows 95 box to NT 4.0. The Problem is the statement:
>
>SET PRINTER TO \\SPOOLER\N\S=MYSERVER\Q=HP5SI
You've included some code that is not a part of the FoxPro language - in fact, it's flags from a Novell capture statement. You're trying to print to the print queue \\MYSERVER\HP5SI. Your best bet will be to set up the printer and capture it to a port using the NT Add Printer dialog (Control Panel/Printers/Add Printer, and set the capture accordingly), assigning it to a port on a permanent basis. For example, if you've set up \\MYSERVER\HP5SI as the local device LPT4: through the add printer dialog, you could send printed output to the queue by:
SET PRINTER TO LPT4:
>
>does not work from NT, I get a message "Error writing to LPT1:". Works great in 95 or 98. I then tried externally calling the Novell capture and NT really does not like that one (CRASH!). Does anyone know how I can get the SET PRINTER TO statement to work or any other way in which I can redirect my printer output in Foxpro 2.6 DOS on an NT machine? Any help would be greatly appreciated!