View Full Version : OVRPRTF to a local printer
Guest.Visitor
01-01-1995, 02:00 AM
I want my CL program to automatically send a spool file to the printer attached to LPT1 of the PC running the program. I am using Client Access V3R1V3 on an NT workstation, using AnyNet. The printer that is attached is working, and can accept printouts from the AS/400. (That was a struggle, but I won!) I can get the name of the workstation via RTVJOBA, and add a "P" to the end, and OVRPRTF to that OUTQ. This will require consistent naming conventions of the workstations and printers. This is a possibility. However, as a consultant, I want this customer not to be tied to these conventions if there is a better way. Is there a setting to allow a printout to go to a local printer? Dave Corfman, Cincinnati, DWCorfman@AOL.com
vrozen1
09-09-1998, 08:38 AM
Did you create print session on that PC? I think you need to create one and attach it to LPT1.
Guest.Visitor
09-10-1998, 05:36 AM
Vadim, Yes, the printer session has been set up, and is working. The issue is now one of a programming issue, or a configuration setting. Any ideas are appreciated. Dave Corfman, Cincinnati, DWCorfman@AOL.com
Guest.Visitor
09-10-1998, 11:35 AM
Kevin, Thanks for your detailed response. I like your ideas, and will be implementing one of them, depending on the application and constraints. Dave Corfman, Cincinnati, DWCorfman@AOL.com
Guest.Visitor
09-11-1998, 09:07 PM
Dave IF the workstation device description has been setup so it nominates the attached PC printer as the default PRTDEV then I would suggest the following steps:<ul> RTVJOBA PRTDEV(&cur_dev) CHGJOB PRTDEV(*WRKSTN) OVRPRTF DEV(*JOB) Produce output CHGJOB PRTDEV(&cur-dev) [/list] This way it doesnt matter where the user logs-on printout will also be sent to the closest printer. (Generally this is good.....but not always !). Also your client can add/deleted new workstations without affecting the application maintenance. David
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.