Since I don’t had anything connected to my LPT1 port and on some machines don’t have a LPT1 port, I’ve used pooling in the Windows Pinter properties - ports. Enable printer pooling, and select the network printer and LPT1-LPTx. When sending a print job to LPT1, Windows finds it busy, so redirects to the network port. This has worked for me for various DOS applications.
From: [email protected] [mailto:[email protected]] On Behalf Of Michael J. Sinclair Sent: Tuesday, October 13, 2009 11:57 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Printing to network printers LPT1-LPT9 in Rbase for DOS vs Rbase for Windows Hi All, What is the best way to print to a network printers in Rbase for DOS and Rbase for Windows? Do both versions recognize LPT1 through LPT9? I have been using the following code with reasonable success, but I do get a few jobs that just don't print.... ZIP NET USE LPTx /delete ZIP NET USE LPTx \\servername\printequename <file:///\\servername\printequename> OUTPUT LPTx WRITE 'whatever you want' OUTPUT SCREEN --or sometimes... OUTPUT LPTx COPY filename.txt LPTx OUTPUT SCREEN Adding a PAUSE FOR 2 after the ZIP NET USE COMMANDS seems to decrease the number of times that my print jobs "get lost". What is the best way to do this? Do both versions (DOS and Windows) running on Windows XP support LPT1-LPT9?? TIA! Mike

