Solved

Network Printer object via REXX

Posted on 1997-06-10
5
280 Views
Last Modified: 2013-12-26
I need to bypass the W95 lack of cooperation with the WPS.  If it's possible to create a Network Printer object with a REXX program, how do I go about doing it?  Please be explicit: I have some knowledge of REXX programming, but almost no experience using it to create WPS objects.
There is an LJ4Si hung off a W95 box on the Peer LAN.  I can use it via a command line call (net use lpt1 \\serv2\hplj) but I cannot get the Network Printer template to see this printer.  I am a bit familiar with using Rexx's SysCreateObject.  What I do not know, nor know where to find (not being a developer), are the precise parameters etc. that must be used with SysCreateObject to create a Network Printer object, either directly on the WPS desktop or in a subfolder thereof.  I currently have an LJ4Si object installed on LPT1.  Together with the net use command above, this enables me to print on the LJ4Si hung off the W95 box by drag-and-drop (e.g.).  Before the other box was "upgraded" to W95, it was a WfWG box and I had a Network Printer object for this same printer.  I'd like to get it back, in some way, if possible.
0
Comment
Question by:pparker061097
  • 2
  • 2
5 Comments
 

Expert Comment

by:hhasert
ID: 1292011
I'm a bit confused. do you want to create a printer with Rexx on a W95 desktop ?

For OS/2 you can call SysCreateObject. (I can be more explicit if you want to). I'll have to look it up though (I wrote a 'C' program that manipulates objects from a response file, so the Rexx way is a bit rusty).

Creating a network printer object is not as easy as creating a regular object. I haven't tried this with Rexx, but I know that a device driver must be installed locally and communications with the network printer could be necessary. We create a shadow from one of the LSA folders (Network).
0
 

Author Comment

by:pparker061097
ID: 1292012
Adjusted points to 100
0
 

Author Comment

by:pparker061097
ID: 1292013
Edited text of question
0
 

Expert Comment

by:hhasert
ID: 1292014
The problem is probably that the Network Printer Object only communicates with a Printer Queue on a OS/2 Server. A normal printer object doesn't. (There are two templates for a printer)

What you can do is create a normal printer object. The driver is clever enough to include laserjet coding when printing to a non-OS/2 printer server (or should be).

I can't help you with the statements for the SysCreateObject. I haven't tried this and don't have time to experiment. You could use a package like 'DeskMan/2' (I think that's the one) which can read an object's properties.

I'm sorry, I don't think I can help you. At least the question is a lot clearer now.
0
 
LVL 1

Accepted Solution

by:
timur earned 100 total points
ID: 1292015
It is a known limitation of Rexx/WPS that you can create a WPS printer object via just Rexx.  The only thing I can think of
is to look at Object Desktop by Stardock.  It has a feature
known as Object Package, which can convert an object into
a file.  It may also be able to create a Rexx script, and maybe
Stardock has figured out how to make a Rexx script for a
network printer object.  There are similar utilities available
on hobbes.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 36
Hibernate methods 2 58
sum28 challenge 31 96
pre4 challenge 19 88
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now