- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How to print a background logo/picture
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 11:37 PM
02-06-2005 11:37 PM
We use HPLJ5SI and standard VMS Print symbiont UCX$LPD_SMB.
Environment:
VMS 7.1 on VAX 4500
TIA,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:28 AM
02-07-2005 12:28 AM
Re: How to print a background logo/picture
I am sorry, but with LPD the only option you got is a M$ / *UX type of construct.
You will have to pre-process your to-be-printed, such that the result is one single file that contains all that is to be "printed", including all steering info (control strings).
If you want to use the VMS technique of printing, using queue and/or print paramaeters such as a PAGE_SETUP module, then the only way to do that on network-connected printers is by using the UCX$TELNETSYM (TCPIP$TELNETSYM starting VMS 7.2).
If you do that, then you create a
Now you put that module in the text-library for your queue.
($ SHOW QUE xx/FULL -- to show which library;
$ HELP LIBR -- for the exact syntax to insert).
Then,
$ DEFINE FORM
Now, print/FORM=
or
INIT /QUEU .. /DEFAULT=FORM= ;
which uses this form for any print command not explicitly specifying another form
-----
Why can you only do this on TELNETSYM, and not on LPD?
Well, VMS uses (and has always used) the concept of printJOB.
A job consists of a number of related files.
M$ and *UX do not recognise the JOB concept.
Each file is considered to be independant.
And in that view, any setup or reset module is a separate file, so, a separate job, so, each time reset printer and skip to next page.
TELNETSYM (as seen from the printer) opens an "interactive" telnet session, and writes all kind of things to the output port. After the VMS queue considers the --JOB-- done, only then is the "telnet" session session disconnected, and control is given back to the printers' internal logic.
Hope this helps,
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:36 AM
02-07-2005 12:36 AM
Re: How to print a background logo/picture
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:39 AM
02-07-2005 12:39 AM
Re: How to print a background logo/picture
An alternative would be to use DCPS to print to the printer this may allow a greater range of options.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 04:46 AM
02-07-2005 04:46 AM
Re: How to print a background logo/picture
If your printer has enough memory, load your logo/picture as a macro at the beginning of the job and then call the macro at each page. This saves a lot of network bandwidth. See the PCL manual for the actual commands.
-Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 03:43 PM
02-07-2005 03:43 PM
Re: How to print a background logo/picture
Your idea about pre-loading a logo into a printer memory and then use MACRO calls sounds interesting.
What PCL manual you are refering to ?
Can you give me some pointers/example to get me started ?
TIA,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 06:10 PM
02-07-2005 06:10 PM
Re: How to print a background logo/picture
about time to combine the good of the above ideas:
Use Doug's printer-loaded Macro,
Use Ian's Relay Queue to be able to use VMS print functonality,
Use my /FORM setup in Ian's queue, and in the form specifying module, supply the control strings that call the Macro.
... and now it is up to you to fill in the details and do the actual coding and debugging.
Please DO report here how things turn out!
Success.
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 08:05 PM
02-07-2005 08:05 PM
Re: How to print a background logo/picture
Is there any chance someone can write a complete description on how this is acheived from a VMS system?
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 10:08 PM
02-07-2005 10:08 PM
Re: How to print a background logo/picture
http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf
Look at the Macros chapter. There is also an example how to create a letterhead macro.
You can write such a macro and make it permanent or create a temporary macro at the begining of the job with:
$ DEFINE/FORM/SETUP=
where macrodefinition is a library module with the macro definition.
Then in the /PAGE_SETUP just add a module which calls (call,execute or overlay - please read the specification in the manual) the macro at the beginning of each page.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 10:39 PM
02-07-2005 10:39 PM
Re: How to print a background logo/picture
I've had a read of that manual, and it all seems fairly straight forward.
It would still be useful to have this translated into the real world, with some real examples.
For instance, how can the original overlay be created (MS Word?) and how do we go about getting it stored as a macro?
Robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 11:08 PM
02-07-2005 11:08 PM
Re: How to print a background logo/picture
Look at the file in the DCPS$LAYUP directory. There should be a file called
CONFIDENTIAL.PS. Look at it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 05:04 AM
02-08-2005 05:04 AM
Re: How to print a background logo/picture
You need to add and remove some escape sequences. The example in the manual creates macro#1.
To the begining of your file, add:
(27 38 102 49 121 48 88)
This is equivalent to the
From the end of the file, remove the
Then, to the end add:
(27 38 102 49 88)
Now, you might need to do some other things, like cursor positioning, but it depends on your macro. Read the differences between Execute, Call and Overlay.
Bojan gave the link to the manual and he and others have explained the VMS part. PCL and printer stuff is discussed over in the Printer->Software forum where the printer gurus hang out.
HTH
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2005 11:59 PM
02-11-2005 11:59 PM
Re: How to print a background logo/picture
I've tried your approach, but encountered some problems:
- I used MS Paint to load/display the original little logo (was in JPEG format).
I've printed the image to a file and transfered this to VAX all right.
I managed to print this to a VAX print queue (UCX$LPD).
I've checked/open this file with a Notepad and it is PJL Postscript file (there is no FF there).
The problem is that this little logo prints out as ONE whole page on VAX.
In other words I can't put the necessary text report on the SAME page.
Also, I need to position this little logo in the upper right corner.
In short, how do I combine my PCL escape sequences with a logo (in PJL Postricpt format) to print everything on one page ?
TIA,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2005 01:56 AM
02-12-2005 01:56 AM
Re: How to print a background logo/picture
Try to check what is in the file. The only method I know is to take the manual and reinterpret each PCL command. Try to delete all PCL commands that are not needed. The picture commands is probably something like this:
probably there are many
When you extract only the picture you can position it (see the macro example in the manual). Try to put the
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2005 04:47 PM
02-12-2005 04:47 PM
Re: How to print a background logo/picture
Unfortunately, as you can see from the attachment (using Notepad), this is actually POSTSCRIPT format.
In other words, there are no PCL commands.
It obviously prints as a whole page and I don't know how to force my text/report on the same page.
I'm fairly familiar with PCL commands, but not with Postscript.
Would you know how to "tell" the printer not to eject the page after printing this logo (which is in the Postscript format) and to position itself at the beginning of the same page in order to let me print the report ?
Is there an easy way to convert a JPEG image to RASTER format ?
TIA Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2005 09:18 PM
02-12-2005 09:18 PM
Re: How to print a background logo/picture
I am also not familiar with postscript.
You can try to install a laserjet printer on yours M$ machine and print to file. One other method is to use ghostscript to convert postscript to PCL. I try this with the file you attached in the previous post. Now I am at home and have only a Linux system on hands but you can get ghostscript also for Windows and VMS.
The ghostscript command was:
gs -sDEVICE=laserjet -sPAPERSIZE=legal -sOutputFile=t.pcl t.ps
(t.ps is yours file without starting and ending PCL commands).
I try to arange the file as you say (the logo is printed at the right top corner of the page). On my home DeskJet prints OK, but I can not print text at the beginning of the page, so I move the cursor after the logo. Maybe this will work on a PCL5 machine (DeskJet is PCL3) try to play with
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2005 10:14 PM
02-13-2005 10:14 PM
Re: How to print a background logo/picture
We are making some progress here now - Thank you !
My immediate problem now is to find/install a postscript-to-pcl converter for Windows.
The downloaded ScriptLogic does not quite work well on my Windows 2000 or XP workstation. I believe, I need to download some extra Scriptlogic drivers (perhaps PCL3)!?
Pozdrav,
Iskra Delta janicmx@yahoo.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 12:58 AM
02-14-2005 12:58 AM
Re: How to print a background logo/picture
You can try with ghostscript (its GPL or AFPL):
http://www.cs.wisc.edu/~ghost/
for direct download:
https://sourceforge.net/project/showfiles.php?group_id=1897&package_id=108733&release_id=270066
If you want to run ghostscript on VMS the distribution is on the freeware CD:
http://h71000.www7.hp.com/openvms/freeware/index.html
Abbout PCL3, I dont know if macros are implemented int this PCL version. In PCL5 are.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 10:17 AM
02-15-2005 10:17 AM
Re: How to print a background logo/picture
When you print the image to a file, print to a non-postscript HP LJ. Apparently, the printer driver you used was a postscript one.
-Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 01:54 AM
02-18-2005 01:54 AM
Re: How to print a background logo/picture
I'm almost there - thank you !
Yes, I followed your advise and installed local PCL printer (HP 1200 PCL) on my XP.
Now, when I print my logo (in the attachment) to a file on an XP workstation, I get a PCL file which I can ftp to VAX and print it all right.
However, I have a problem adding my PCL control sequences to the file.
Actually, a mere opening of this PCL file with NOTEPAD and saving it back WITHOUT ANY CHANGES messes up the printout.
I tried this several times.
Notepad is not supposed to add anything, yet the mere opening and saving the file back changes something !?
All I want is to postion the cursor BELOW the logo to get it ready for the report.
Any ideas / help ?
TIA,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 02:12 AM
02-18-2005 02:12 AM
Re: How to print a background logo/picture
no guarantees, but MY first try would be to ftp (image) this file to VMS.
Also, create a file with just the cursor positioning, and then $ APPEND the latter to the former.
That "SHOULD" leave the LOGO file intact...
Success,
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 03:09 AM
02-18-2005 03:09 AM
Re: How to print a background logo/picture
I will never trust M$ Notepad. Notepad changes the contents of the file (know something about this when editing files with slovenian characters).
Jans APPEND is a good idea, but looking at yours attachement you should remove the starting and also the ending PJL commands (
So you need a better editor, which does that you want and not that he means that is correct ;)
The file in my previous post was edited on linux with the emacs editor.
Try to copy the file on VMS and edit it with the tpu editor.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 03:29 AM
02-18-2005 03:29 AM
Re: How to print a background logo/picture
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 04:11 AM
02-18-2005 04:11 AM
Re: How to print a background logo/picture
I knew a guy once who could do things like this with TECO, but I can't. I think there's an emacs editor on the VMS freeware CD.
If this is something that will be done often, write a simple little program to open the file for input in block mode and an output file in stream. Find the first
-Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 05:16 AM
02-18-2005 05:16 AM
Re: How to print a background logo/picture
A What-You-Get-Is-What-You-Deserve sort of editor.
See for example
http://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/
It is possible to edit binary files with teco!
There is at least one member of VMS Engineering who is a fan. I don't remember many commands (FS is the find and subtitute command) but the fastest way of converting a file from streamLF to vanilla rms text file is
EDIT/TECO file.xxx
EX$$
($$ is escape escape).
(now lost in nostagic thoughts of twenty years go when I could write teco macros that worked! :-)
Purely Personal Opinion