Fil,
Thanks for this feedback. I think I can do what you are saying.
Now I have to figure out how to be able to lpr to HPJetDirect print servers..... Gosh, this is begining to be a bit overwhelming. I'm sure I can do it, but after travelling 25 hrs straight yesterday to get back from our vacation, I'm a bit off my stride :-)
Thanks
Kevin
"Beza, Fil" <[EMAIL PROTECTED]> wrote:
"Beza, Fil" <[EMAIL PROTECTED]> wrote:
In the DEVICE File, put the code in PRE OPEN EXECUTE to change the IO variable to the unique name.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beza, Fil
Sent: Saturday, November 13, 2004 8:22 AM
To: [EMAIL PROTECTED]
Subject: RE: [Hardhats-members] Printers... An overview please.Hmmm... we don't have that problem in VMS because each file gets a different version number.Take a look at %ZISUTL. It has an entry point to generate unique namesUNIQUE(ZISNA) ;Build a unque number to add to a device name
;If passed a name put the number before the last dot.
N %,%1
S %=$H,%=$H_"-"_$J,%=$$CRC32^XLFCRC(%)
I '$L($G(ZISNA)) Q %
S %1=$L(ZISNA,"."),%="_"_%
S:%1=1 %=ZISNA_% S:%1>1 %=$P(ZISNA,".",1,%1-1)_%_"."_$P(ZISNA,".",%1)
Q %
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg
Sent: Saturday, November 13, 2004 5:55 AM
To: [EMAIL PROTECTED]
Subject: RE: [Hardhats-members] Printers... An overview please.Thanks for your feedback Fil.It seems to me that one would need to send the printer file to a file with $J somehow included in it. Otherwise with dozens of users on the system simultaneously, the slave.dat file would be overwritten erroneously.ThanksKevin
"Beza, Fil" <[EMAIL PROTECTED]> wrote:You can create multiple entries in the device file pointing to the same
physical printer. Point each one to a different terminal type where each
terminal type changes pitch etc depending on the PCL code you send to
printer. Each TERMINAL TYPE entry will have a different OPEN EXECUTE.
Take a look at the P-HP... entries in the TERMINAL TYPE File. A bunch
of them are distributed with the FOIA distribution.
Here are three HP OPEN EXECUTES I use
10 PITCH
OPEN EXECUTE: W
$C(27),"E",$C(27),"&l0o0S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
,"&l7.4c2e67F",$C(27),"&a05l95M"
16 PITCH
OPEN EXECUTE: W
$C(27),"E",$C(27),"&l0o0S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
,"&l7.4c2e67F",$C(27),"&a05l132M",$C(27),"(s16h"
DUPLEX (DOUBLE SIDED) PRINT
OPEN EXECUTE: W
$C(27),"E",$C(27),"&l0o1S",$C(27),"&s0C",$C(27),"&k10H",$C(27)
,"&l7.4c2e67F",$C(27),"&a05l95M"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Beza,
Fil
Sent: Friday, November 12, 2004 12:36 PM
To: [EMAIL PROTECTED]
Subject: RE: [Hardhats-members] Printers... An overview please.
What Bhaskar said is how we print via TCPIP in Cache/VMS. We actually
send the output to a file thus we treat the Device as a file instead of
a printer. Then using the CLOSE EXECUTE field in the Terminal Type file
we send a command to VMS to send the file to the printer.
Try this - courtesy of Chris Richardson:
DEVICE FILE:
NAME: your device name
ASK DEVICE: NO
ASK PARAMETERS: NO
ASK HOST FILE: NO
SUPPRESS FORM FEED AT CLOSE: YES
TYPE: HOST FILE SERVER
SUBTYPE: P-SLAVE TEXT GTM/LINUX
$I: $HOME/slave.dat
OPEN PARAMETERS: newversion
TERMINAL TYPE FILE:
P-SLAVE HP 80 GTM/LINUX
FORM FEED: #
RIGHT MARGIN: 80
PAGE LENGTH: 60
BACK SPACE: $C(8)
CLOSE EXECUTE: U IO K IO(1,IO) C IO ZSYSTEM "lpr -r "_IO
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of K.S.
Bhaskar
Sent: Friday, November 12, 2004 12:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [Hardhats-members] Printers... An overview please.
The easiest way to print may well be to write the output into a
temporary file and then to run lpr or kprinter on it via ZSYstem to
spool it to the printer.
-- Bhaskar
On Fri, 2004-11-12 at 15:20, Kevin Toppenberg wrote:
> OK. Everyone's help has been great so far. Now I'm ready for some
> more info.
>
> Let's say I set up a DEVICE calle d OFFICE1_FRONT_LASER, and make it's
> type to be TRM, and it's subtype to be P-HPLASER-P10. I need to tell
> the system the system how to connect to the device. I believe this is
> where $I comes in.
>
> Where can I learn more about how to set up $I? Specifically, I will
> need to connect to HP-JetDirect print servers, which provide their
> services at a TCP/IP address. I don't know the details of which
> ports they use etc, but it is a standard method of connecting printers
> to a network (The printers then connect to these network devices via a
> parallel cable.) I may later also want to connect to printers
> connected to windows boxes. I know I can share these with the simple
> unix LPR protocol. This may simplify connecting to them.
>
> Also, I am trying to discover how to make this process easy for other
> users, to put into my configuration process.
>
> Where do I turn next to learn about this?
>
> Thanks
> Kevin
>
> Greg Kreis <[EMAIL PROTECTED]>wrote:
> Think of the Terminal Type file entry as something similar to
> a 'driver'
> that you load for a device. It does more than that, though.
>
> -----Original Message-----
> From: "Roy"
> Sent: Fri, November 12, 2004 7:46 am
> To: [EMAIL PROTECTED]
> Subject: RE: [Hardhats-members] Printers... An overview
> please.
>
> The DEVICE file contains the printers that are used in VistA,
> a field in
> that file name SUBTYPE points to the TERMINAL TYPE file, which
> should
> already be populated with the codes required to talk to an
> array of
> different printers. Printers can be setup to allow for
> different pitches,
> fonts, orientation, etc.
>
>
>
> _____
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin
> Toppenberg
> Sent: Friday, November 12 , 2004 5:55 AM
> To: Hardhats Sourceforge
> Subject: [Hardhats-members] Printers... An overview please.
>
>
>
> Hello all,
>
>
>
> Writing here from downtown Rome. Having a great trip.
>
>
>
> Thought Id sneek in a question. Sorry about no apostrophies,
> but this is a
> roman keyboard, and it is DEFINIATELY different from a US one.
> For one
> thing, no one can figure out how to get the AT symbol from the
> keyboard. So
> when I cant find an apostrophy, I think "oh well". ... But I
> digress...
>
>
>
> OK, I am to the point in my installation process where I want
> to walk the
> user through setting up printers. My understanding is that
> printers are set
> up as DEVICES, just the same as any terminal, disk system etc.
> etc. Is this
> true? I there the concept, as in Windows, of printer TYPES and
> printers
> being different? For example, can I have 4 different laser
> printers in the
> front office, all of the same type (i.e. HP laser 4).?
>
>
>
> I kn ow that to set up a printer etc, one must send
> initialization sequences
> etc.
>
>
>
> How does this all work?
>
>
>
> Thanks
>
> Kevin
>
> _____
>
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on
> Linux.
> http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
> _______________________________________________
> Hardhats-members mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>
> ______________________________________________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com
************************************************************************
***
This electronic mail transmission contains confidential and/or
privileged information intended only for the person(s) named.
Any use, distribution, copying or disclosure by another person is
strictly prohibited.
************************************************************************
***
NOTE: Ce courriel est destine exclusivement au(x) destinataire(s)
mentionne(s) ci-dessus et peut contenir de l'information privilegiee,
confidentielle et/ou dispensee de divulgation aux termes des lois
applicables. Si vous avez recu ce message par erreur, ou s'il ne vous
est pas destine, veuillez le mentionner immediatement a l'expediteur et
effacer ce courriel.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld
Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members
Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com
Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com
