1825739 Members
2711 Online
109687 Solutions
New Discussion

Re: Page Break (printer)

 
Roro_2
Regular Advisor

Page Break (printer)

Hi,

I am working on HP server (rx1620) running HPUX 11i v2 (June 2006).
I have connected a printer to server through NIC (print server ) ; it was defined as network remote printer.
How can i modify the interface program file in order to add a page break (form feed) at the end of each request from HPUX .

Roger
5 REPLIES 5
OldSchool
Honored Contributor

Re: Page Break (printer)

there should be a script in
/var/spool/lp/interface that is the same name as the printer queue.

you can look at that to see if you can append the form feed. you may have to (in the script) copy the file, append form feed and then print.

HOWEVER, if this is related to your question regarding printing from MF COBOL, I would suspect that the "last line" of the file is still in an i/o buffer and has yet to be written to disk. make sure that the output file is properly closed / flushed before attempting to print.

if routing the printed output to a different printer still results in a missing line, then the issue has almost got to be the program.
Dennis Handly
Acclaimed Contributor

Re: Page Break (printer)

>OldSchool: would suspect that the "last line" of the file is still in an I/O buffer and has yet to be written to disk.

Because the "default" is AFTER ADVANCING?

> make sure that the output file is properly closed / flushed before attempting to print.

I'm not sure how this could happen. A close of the file should be done before using lp(1). Of course if system(3) is issued in the COBOL program, that would fail.
Roro_2
Regular Advisor

Re: Page Break (printer)

Hello,

Thank you for your concern.
I want to know excatly how can i modify the interface program in /etc/lp/interface directory , in order to add a form feed (page break) at the end of each request.
NB : customer cann't modify the source programs of the application.
Dennis Handly
Acclaimed Contributor

Re: Page Break (printer)

>I want to know excatly how can i modify the interface program

Here is a previous request for an Okidata printer:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=469197

And others:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=205714
Roro_2
Regular Advisor

Re: Page Break (printer)

Thank you Dennis, i will apply the changes to the interface program.

Roger