Hello,
We have a legacy app compiled in Foxpro 2.6 for DOS. The PC Running this is a DOS machine logging onto Novell Netware 3.1x. The app lives on the C: drive, the data lives on the server (via mapped N/W Drive). For printing, there is Capture command in the login script "Capture L:1 Q=Queue1".
I need to move this "app" to an NT Machine on the corporate NT Domain. I have installed an NT4.0 Workstation, copied the 'C:\foxpro app folder' onto the new machine. The corprate login script maps the data folder to the server (via Gateway for netware share), and maps a printer \\servername\printqueuename. I have also setup a Net use command to attach the printer to LPT1 sothat anythign printed to LPT1 goes to the N/W pritner.
HOWEVER
Code in Foxpro states this:
** lib_psetup sets up a link to the
** print queue on LPT1. E.g. If the
** print queue is QUEUE1, then the code
** to set up the printer is:
**
** DO lib_psetup WITH "QUEUE1"
**
PROCEDURE lib_psetup
PARAMETERS lib_qname
SET PRINTER TO
SET PRINTER TO \\SPOOLER\NB\Q=&lib_qname
RETURN &&lib_psetup
When I run the app, it fails because of the Lib_Setup info. It can't fnid a 'Q=' command basically cos it doesn't exist in Windows. Is there an easy way to get Foxpro to purely print to LPT1? or is there a way in Windows to "name" a mapped shared printer so that Foxpro will recognise it?
I am not a programmer, just a mere IT Support guy, and I need to rid the company of the Netware server and this is the only remaining stumbling block. It still runs fine thru the DOS PC with Novell mappings.....
Any help appreciated..
Tony
We have a legacy app compiled in Foxpro 2.6 for DOS. The PC Running this is a DOS machine logging onto Novell Netware 3.1x. The app lives on the C: drive, the data lives on the server (via mapped N/W Drive). For printing, there is Capture command in the login script "Capture L:1 Q=Queue1".
I need to move this "app" to an NT Machine on the corporate NT Domain. I have installed an NT4.0 Workstation, copied the 'C:\foxpro app folder' onto the new machine. The corprate login script maps the data folder to the server (via Gateway for netware share), and maps a printer \\servername\printqueuename. I have also setup a Net use command to attach the printer to LPT1 sothat anythign printed to LPT1 goes to the N/W pritner.
HOWEVER
Code in Foxpro states this:
** lib_psetup sets up a link to the
** print queue on LPT1. E.g. If the
** print queue is QUEUE1, then the code
** to set up the printer is:
**
** DO lib_psetup WITH "QUEUE1"
**
PROCEDURE lib_psetup
PARAMETERS lib_qname
SET PRINTER TO
SET PRINTER TO \\SPOOLER\NB\Q=&lib_qname
RETURN &&lib_psetup
When I run the app, it fails because of the Lib_Setup info. It can't fnid a 'Q=' command basically cos it doesn't exist in Windows. Is there an easy way to get Foxpro to purely print to LPT1? or is there a way in Windows to "name" a mapped shared printer so that Foxpro will recognise it?
I am not a programmer, just a mere IT Support guy, and I need to rid the company of the Netware server and this is the only remaining stumbling block. It still runs fine thru the DOS PC with Novell mappings.....
Any help appreciated..
Tony