- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printing via Reflection for HP
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
01-22-2006 01:11 PM
01-22-2006 01:11 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2006 03:02 PM
01-22-2006 03:02 PM
SolutionThe COLUMNS and LINES variables are normally set during a normal login, but in Xwindows, the normal /etc/profile and .profile files are not run. Terminal-based applications require that the emulator be properly identified. This is done with the ttytype program. So if this is a terminal window, run the command:
ttytype -s
on each server. If the results are the same, then the Reflection/X emulator needs to choose an HP-UX font server for the latest fonts. This would also be true for application windows (non-terminals). If the LINES/COLUMNS are different between the two servers, you need to set the same geometry for each terminal window. Remember that the terminal window did not originate on the PC, it is created and drawn by the remote HP-UX machine. Reflection/X is a passive program that just waits to be told what to do by the remote systems. You can configure Reflection/X to handle some Xwindow features like fonts as well as actions to take when font features mismatch.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:52 PM
01-23-2006 01:52 PM
Re: Printing via Reflection for HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:28 PM
01-23-2006 03:28 PM
Re: Printing via Reflection for HP
Your problem looks like to be CPI & LPI Setting problem, U can solve the issue in the following way.
U have to select Model for printer ESCP
go to directory /usr/lib/lp/model
one file will be there called ESCP just change the value of LPI & CPI , or secound method can be just find the name of your printer, there will be 2 files of your printer name , one will be the copy of ESCP just made changes there, or u can ftp the same driver file from the old server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 02:50 AM
01-24-2006 02:50 AM
Re: Printing via Reflection for HP
However, since your printing is performed as an application task (you select printing using the program), then HP-UX is not involved in the actual printing, that is, the printer is connected to the PC. So the assumption is that the same characters are sent by the program to R/HP for pass-thru printing. And I'm also assuming that the same R/HP settings file is used for both servers. In looking at R/HP settings for printing (-> Setup -> View Settings, then search for print in the Search box), there are a few options you might look at:
Bypass Printer Driver
Printer Auto Row Size
Printer Columns Tied To Display
Printer Fit Font to Page
Use Default Printer Font
Now don't change multiple items as it will get complicated to find the right setting. I would try Fit To Page, or Use Default Printer Font. My guess is that the new server has a different version of the Curses library and that the width of the screen text is slightly wider. There have been some subtle Curses library changes in the past that may change the line width (perhaps inserting a space). Since this is an Epson printer and the Windows printer driver is being told what to do by R/HP, it looks like the actual text sent to the printer has been preceeded by a font width directive.
There may be other patch differences between the HP-UX systems that could cause this condition. You might try printing to a file and compare (carefully) the two servers' results. Look for inserted spaces and also trailing spaces. For instance, the second server may send an extra space in front of every line which makes the line longer and R/HP compensates by reducing the font size for the Epson.
R/HP has a wide variety of controls for printing and for tightly controlled applications, the defaults will usually work as expected. The key is that many applicatgions depend on OS libraries which can create subtle differences when patched. Turning off the R/HP automatic scaling options should help.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 08:07 PM
01-24-2006 08:07 PM
Re: Printing via Reflection for HP
To verify the outputs, I have printed some samples from both servers. Surprisingly, both samples were exact the same. This compression printing phenomenon seems to affect only the dot matrix EPSON printers with chinese fonts built-in. If the cuses library or patches were affecting the line spacing, then it should affect all the printing outputs, right? Anyway, I will try to search for the different patches of servers and see if they have any side-effects on the printer jobs.
By the way, do you know any method to capture the complete output(including the printing, line spacing, etc control commands) to the terminal so that I could inspect any difference between the servers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 11:57 PM
01-24-2006 11:57 PM
Re: Printing via Reflection for HP
An alternative to saving the output to a file is to use the R/HP Display Functions feature. Display Functions is turned on with ALT+M (Alt key plus letter M) then press f7 to enable this feature. Now, every control character will be shown on the screen. Once you enable this feature, normal text processing (like cursor position, video enhancements, etc) are ignored and the characters simply displayed on the screen. So if you trigger a print task (after enabling Display Functions), the text will be dumped to the screen and you can then use the File->Print button to copy the screen contents to a printer. The special control characters will be printed using a special font.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 12:09 AM
01-25-2006 12:09 AM
Re: Printing via Reflection for HP
Bill Hassell, sysadmin