And further to Tim's advise - Running on a network server with multi-users running multiple copies, it is possible for each user to have their own startup file so the same printer can be accessed via different net use commands by individual users. Output to Lpt3 from a DP application report can be directed to a printer near a user with a different start up batch file to other users
Below is a copy of my personal startup file at work to give you idea of what's possible - each user can have their own batch file. Old printers have been remarked (REM) out of the batch file in case we want to resurrect them. (Pstartup.bat) @echo Off net use LPT1: /delete net use LPT2: /delete net use LPT3: /delete net use LPT4: /delete REM Net use LPT1: \\server\KXP3696 Net use LPT1: \\server\OKIMICRO721 NET use LPT2: \\server\admin Net use LPT3: \\server\sales REM Net use Lpt4: \\server\MINOLTA Net use LPT4: \\server\HPcolour And Tim's DPSpool is a wonderful little program when wanting to print to Windows printers using windows fonts, characters, bolding and underlining etc etc Colin ----- Original Message ----- From: Tim Rude To: [email protected] Sent: Tuesday, 26 January 2010 14:09 Subject: Re: [Dataperf] Printing with DP One way would be to use DPSpool. This may be about the only way if the printer you're trying to use is a 'GDI-only' printer that requires Windows to handle the print job processing for it. However, if the printer is something like a HP LaserJet that could process DOS output if you could get it to it, you can try this approach: 1) Share the printer you want to print to as if you were going to print to it from another networked computer. (If you're trying to print to an already networked printer, this step is already done.) 2) Then from the DOS prompt, run the following command: net use LPT1: \\computername\sharename where computername is the network name of the computer, and sharename is the printer's shared name. 3) For best results, put that command in a .BAT or .CMD file and put a shortcut to it in your StartUp folder. That way each time you start Windows it happens automatically. Now whenever you print to LPT1: it gets mapped to your networked printer. It works great for me, and not just with DP. It works with pretty much any DOS app that needs to send output to LPT1:. You can also use LPT2: or LPT3: if you already have another actual printer physically connected to LPT1: and you want to print to a different printer. Just point your DP reports to the correct port and modify your 'net use' command to specify LPT2: (or 3) instead of LPT1: Tim Rude ----- Original Message ----- From: Jeff Puhlmann-Becker To: [email protected] Sent: Monday, January 25, 2010 4:51 PM Subject: Re: [Dataperf] Printing with DP I have been printing from DP to a printer on LPT1 for years. The parallel printers are getting harder to find. Is there a way to print from DP to a USB or network printer? That would be AWESOME and save me lots of headaches! Jeff From: [email protected] [mailto:[email protected]] On Behalf Of Chris Pedersen Sent: Monday, January 25, 2010 4:23 PM To: [email protected] Subject: [Dataperf] Printing with DP I have forgotten how this works (old man syndrome) I know what the problem is - and what the solution is.... just not how to *do* it. Dos applications you would print to an lpt port. There was no need to close the port. Windows applications wait and wait and wait until the default timeone before it will start printing. I know that you can change the timeout value - however this will yield poor results when printing long reports with pauses between lines printed. Rather, I know that I used to instruct data perfect via a character Ascii 12?? ascii 13?? that it was time to print. Can one remind me how this is done? I know that I purchased DP print long ago - but it wasn't necessary for the solution. (Funny, I can remember steven patamia -but not how to do this) Chris ---------------------------------------------------------------------------- Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. ---------------------------------------------------------------------------- _______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf ------------------------------------------------------------------------------ _______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf
_______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/mailman/listinfo/dataperf
