using HP LaserJet 4250

Bill Campbell bill at celestial.com
Tue Dec 19 16:17:24 PST 2006


On Tue, Dec 19, 2006, leefp1 at charter.net wrote:
>Hi to all... been a long time since I've been on the list... not using filepro much anymore... but I need to help someone with a problem.
>
>Unix OS 5.2, FP 4.8

>This person just moved from using an HP LaserJet 2100 to an HP LaserJet
>4250.  I thought it would be unbox, plug, priint.  Indeed, a simple one
>page report will priint and basic print codes like condensed print works.

>But if he prints a report that is two or more pages, after the first page
>he just gets fragments of the report on multiple pages.  Likewise, if he
>tries to print say a three line report for two records (should come out as
>three lines on two different sheets of paper) he gets all the data on one
>page.

>It seems that something is messed up with the page length or the code that
>sends a page feed.

>In Filepro the printer definition is HPLaserJetL.  The 4250 is set with a
>PCL personality and "Append CR to LF" is set to "yes."  I’m no doubt
>missing something obvious, but can’t find it.

>I'm sitting at the computer now and would love some help in the next few
>minutes... remote chance, but if anyone is reading this on Tuesday at 4:05
>PM EST and has any ideas I’d surely appreciate hearing from you.  Thanks.

The printer initialization string I send to my HP 4m Plus that
initializes it to compressed printing and 66 lines per page so it
prints normal reports properly is:

	\EE\E&l1S\E&k2G\E&s1C\E&l7C\E&l66F\E(s0o17.6h0s0b4102T

This is using termcap coding where \E is the ESC character.

This sets the printer to do the Right Thing(tm) with standard
Unix text (LF line endings).

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Manual, n.:
	A unit of documentation.  There are always three or more on a
	given item.  One is on the shelf; someone has the others.  The
	information you need is in the others.
		-- Ray Simard


More information about the Filepro-list mailing list