cramer@optilink.UUCP (Clayton Cramer) (01/07/88)
I've been looking at the output produced by Microsoft Word 4.0 for the HP LaserJet, and I see what looks to be a serious bug. It appears that MS Word sends the following sequence to set the LaserJet to 6 lines/inch: 1b 26 6c 6f 36 44 .&lo6D According to the HP LaserJet Technical Reference, it should be something like: 1b 26 6c 30 36 44 .&l06D I suspect that either the HP LaserJet ignores the "o", or perhaps the entire command. Has anyone had any problems with lines/inch not being reset correctly when printing a Word document?
tpt@hpindda.HP.COM (Tim Temple) (01/09/88)
>> I've been looking at the output produced by Microsoft Word 4.0 for the >> HP LaserJet, and I see what looks to be a serious bug. >> >> It appears that MS Word sends the following sequence to set the LaserJet >> to 6 lines/inch: >> >> 1b 26 6c 6f 36 44 .&lo6D >> >> According to the HP LaserJet Technical Reference, it should be something >> like: >> >> 1b 26 6c 30 36 44 .&l06D >> >> I suspect that either the HP LaserJet ignores the "o", or perhaps the >> entire command. Has anyone had any problems with lines/inch not being >> reset correctly when printing a Word document? What is happenning here is that MS Word is combining two printer commands into one. The command to set 6 lines per inch is: \033&l6D The other part of the command is telling to printer to use "portrait" orientation: \033&l0O (or, since the zero is implied: \033&lO) HP's Printer Control Language lets you combine these into one string: \033&lo6D Everything following the \033&l prefix may be included in one string. The command language is post-fix (argument, command, argument, command...) with the all but the last command in lower case and the last command in upper case to terminate the string. So, what MS Word is telling the printer is to print 6 lines per inch in portrait orientation. Try changing to the HPLASLAN.PRD file and see what you get. You should see something like: \033&l1o6D As to whether this is a defect or not, depends upon whether you *want* to force portrait orientation every time you set the line density. ---------- Tim Temple Hewlett-Packard, Co. The preceding remarks do not constitute an official statement of Hewlett-Packard, Co. For official information, contact your local HP sales office. The opinions expressed are those of the author, not of Hewlett-Packard, Co.
bw@hpcvlx.HP.COM (Bill Wilhelmi) (01/09/88)
> I've been looking at the output produced by Microsoft Word 4.0 for the > HP LaserJet, and I see what looks to be a serious bug. > > It appears that MS Word sends the following sequence to set the LaserJet > to 6 lines/inch: > > 1b 26 6c 6f 36 44 .&lo6D > I used the MAKEPRD program that comes with MSW 4.0 to convert HPLASPS.PRD to a text file. In examining the text file, I found the errant escape sequece on line 226. It should NOT use a lowercase "oh". Rather it should use a zero, or the digit can just be omitted. You can change the "o" to "0" in the text file (or just delete it) and then use MAKEPRD to convert the text file back into the .PRD file. > According to the HP LaserJet Technical Reference, it should be something > like: > > 1b 26 6c 30 36 44 .&l06D This is a standard HP Printer escape sequence. > > I suspect that either the HP LaserJet ignores the "o", or perhaps the > entire command. Has anyone had any problems with lines/inch not being > reset correctly when printing a Word document? > ---------- Escape sequences that aren't recognized are ignored. However, I think that an unrecognized escape sequence is terminated when the "bad" character is read. I wouldn't be surprised if the characters "6D" were also printed. Bill Wilhelmi Hewlett-Packard Company Corvallis Workstation Operation Corvallis, Oregon ______________________________________________________________________________ UUCP:{ihnp4|cbosgd|allegra|decvax|gatech|sun|tektronix}!hplabs!hp-pcd!hpcvlx!bw USnail : 1000 N.E. Circle Blvd., Corvallis, Oregon, 97330, USA
rsl@well.UUCP (Roy Stuart Levin) (01/13/88)
Call Phil Smith Desk Top Publishing Consultant on Parnassus Street in San Francisco. He should be listed in Teleph. book; he is a word dealer and laser printer expert.