Operating System - HP-UX
1833792 Members
2322 Online
110063 Solutions
New Discussion

Printing from HPUX to a local PC LPT1 port

 
SOLVED
Go to solution
Nick D'Angelo
Super Advisor

Printing from HPUX to a local PC LPT1 port

I have an application, MFG/PRO that runs on our HPUX server and we need to print to the local PC's LPT1 port.

I can get it to print, but the last page does not eject and remains in the buffer. They have suggested that it is a printer command that needs to be set.

Does anyone know the command to eject the last page?

THe following is my printer setup within my application.

qqqqqqqqqqqqqqqqqqqqqqqqqqq Printer Definition qqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Output To: LLJET0PS Printer Type: HP-PS x
x x
x Description: local-hpjet port stand Lines / Page: 60 x
x Max Pages: 0 Scroll Output: no x
xDevice Pathname: /dev/tty Spooler: no x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq Printer Control qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Initialize Command: x
x x
x Initialize Ctrl: /027[5i x
x x
x 80-Col Start Ctrl: /027E/027&l0O/027(8U/027(s0p10h12v0s0b3T/027&l66P x
x /027&l2E/027&l7.8689C/027&l66F x
x 132-Col Start Ctrl: /027E/027&l0O/027(0U/027(s0p16.66h8.5v0s0b0T/027&l x
x 66P/027&l2E/027&l7.8689C/027&l66F x
x Reset Ctrl: /027[4i x
x x
x Reset Command: x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
Always learning
3 REPLIES 3
Paula J Frazer-Campbell
Honored Contributor

Re: Printing from HPUX to a local PC LPT1 port

Hi Nick

I remberber my days with MFG/Pro.

It sounds like your print job requires a page break at the end of the print job.

This should then throw out the last page.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Trevor Dyson
Trusted Contributor

Re: Printing from HPUX to a local PC LPT1 port

From the example config you have given it appears that you can embed control sequences.

The form feed instruction is control-L or ascii 027 so the lst instruction in your config fuile should be:

\027

I hope this helps, -Trevor
I've got a little black book with me poems in
Trevor Dyson
Trusted Contributor
Solution

Re: Printing from HPUX to a local PC LPT1 port

Oops....

that should be \012 not \027
I've got a little black book with me poems in