From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fc6e40b5c3c5b614 X-Google-Attributes: gidfee84,public From: EMMANUEL CHOQUET Subject: Re: Printing from DU 3.2 to NT 4.0 using HP JetDirect Date: 1997/04/16 Message-ID: <33546758.41C6@cica.fr> X-Deja-AN: 235148814 References: <33548046.167E@nyassa.cad.cea.fr> To: Jerome Milazzo Organization: Informatique Client/Serveur Newsgroups: comp.unix.osf.osf1 Jerome Milazzo wrote: > > Hello, > > I have several HP postscript printers with Jetdirect network cards, > but no driver/software to use them on Digital Unix ! I'am trying > to use the LPD service on an NT server (the DLC protocol is available > on this system, so I can create HP printer port...) but I have some > problems : Postscript files are not compute by the printers (All I have, > is a lot of pages with postscript TEXT...!) > > I use the HP postscript drivers on the Nt Server. > > My printcap look like : > > hplj|lj:\ > :mc#20:mx#0:pl#66:pw#80\ > :af=/usr/adm/lpacct:\ > :lf=/usr/adm/lperr:\ > :lp=:\ > :rm=NT_SERVER:\ > :rp=unix_hplj:\ > :sb:\ > :sd=/usr/spool/lpd: > > Are there any specific filters ? > > What about HP header (control codes) in the Postscript file ? > > Any Idea/Experience would be helpfull... > > Thanks in advance -1st of all no filter is used at Unix side when you do remote printing so - > :af=/usr/adm/lpacct:\ > :lf=/usr/adm/lperr:\ is not used at all. -2dly this is a known problem : IP Unix to NT printing : Do it this way, works on NT 3.51 AND NT 4.0 : * DOCUMENT:Q150930 28-AUG-1996 [winnt] TITLE :LPD Server Adds and Prints Control Codes PRODUCT :Microsoft Windows NT PROD/VER:3.50 3.51 OPER/SYS:WINDOWS KEYWORDS:kbnetwork ------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows NT Workstation versions 3.5 and 3.51 - Microsoft Windows NT Server versions 3.5 and 3.51 ------------------------------------------------------------------------- SYMPTOMS ======== When a formatted job prints from an LPR client to a Windows NT computer that is running the LPD services, PCL or PostScript codes are printed on the output instead of a properly formatted document. WORKAROUND ========== In Windows NT 3.51, this problem can be prevented by reconfiguring LPD to ignore the control command and always assign the RAW datatype. However, the code that implements this is not working. The code looks for a registry setting in the LPD key instead of the LPDSVC key. You can work around this problem by creating an LPD key at the same level of the LPDSVC key, and then provide duplicate information of the LPDSVC key to the LPD key. For Windows NT 3.51 to assign the RAW datatype, regardless of the control file contents, do the following: WARNING: Using Registry Editor incorrectly can cause serious, system- wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk. 1. Run Registry Editor (REGEDT32.EXE). 2. From the HKEY_LOCAL_MACHINE subtree, go to the following key: \SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters 3. On the Edit menu, choose Add Value. 4. Add the following: Value Name: SimulatePassThrough Data Type: REG_DWORD Data: 1 NOTE: The default value is 0, which informs LPD to assign datatypes according to the control commands. 5. To work around the problem mentioned above, create an LPD key at the same level of the LPDSVC key. 6. Select the LPDSVC Key and choose Save Key from the Registry menu, save the file as LPDSVC.KEY. 7. Select the LPD key created in step 5. 8. Choose Restore on the Registry menu and select the file created in step 6. Click OK. 9. A warning message appears. Click OK and quit the Registry Editor. 10. At a command prompt, type: net stop lpdsvc 11. At a command prompt, type: net start lpdsvc MORE INFORMATION ================ The Windows NT LPD Service follows the RFC1179 specification. This states that the LPR client must tell the LPD server how to handle the print job. If the client formats the job, it must send the "l" control character to instruct the LPD server to print the job without any alteration. Some LPR clients cannot be configured to send different control characters and always send an "f". This control character instructs Windows NT to assign a data type of TEXT and to use the printer driver to create a new print job that prints the text of the original job on the page. In the case of a postscript job, the new print job prints the original job's PostScript code on the page. KBCategory: kbnetwork KBSubcategory: ntprint Additional reference words: 3.50 3.51 prodnt unix aix sun solaris ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Emmanuel Choquet Informatique Client/Serveur & Communication _/ _/ _/ _/_/_/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/_/_/ _/ _/_/_/ ics@cica.fr c/o Cica Tel: (33) 4 92.94.23.50 2229, route des cretes fax: (33) 4 92.94.23.54 06560 Sophia-Antipolis