Preventing Print Spooler CR or LF to CR/LF Character Translation

ID: Q243729


The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Server, Enterprise Edition version 4.0

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

When you use the Windows NT 4.0 Line Printer Daemon (LPD) utility (in conjunction with the print spooler) to process text-stream print jobs, both line feed (LF) and carriage return (CR) characters are translated to a carriage return/line feed (CR/LF) character before the print job is sent to the print device.


RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem. If you are not severely affected by this specific problem, Microsoft recommends that you wait for the next Windows NT 4.0 service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English-language version of this fix should have the following file attributes or later:

   Date       Time     Size     File name      Platform
   ----------------------------------------------------
   09/28/99   01:58p   15,632   Winprint.dll   x86
   09/28/99   01:58p   23,312   Winprint.dll   Alpha 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

Although this is the default behavior, you can change it to disable CR/LF processing or to disable CR processing. After you install the hotfix on the print server, use the following steps to configure the print spooler on a per-printer basis for either print processing preference:

To Disable CR/LF Processing

  1. Start Registry Editor (Regedt32.exe).


  2. Locate the following key in the registry


  3. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\printername\PrinterDriverData
    where printername is the printer to be configured.

  4. On the Edit menu, click Add Value, and then add the following registry value:


  5. Value Name: Winprint_TextNoTranslation
    Data Type: REG_DWORD
    Value: 1
  6. Quit Registry Editor.


  7. Click Start, point to Settings, click Control Panel, and then double-click Services.


  8. Click the TCP/IP Print Server service, and then click Stop.


  9. Click the Spooler service, and then click Stop.


  10. After the Spooler service has stopped, click Start.


  11. Click the TCP/IP Print Server service, and then click Start.


To Disable Only CR Processing

  1. Start Registry Editor (Regedt32.exe).


  2. Locate the following key in the registry


  3. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\printername\PrinterDriverData
    where printername is the printer to be configured.

  4. On the Edit menu, click Add Value, and then add the following registry value:


  5. Value Name: Winprint_TextNoCRTranslation
    Data Type: REG_DWORD
    Value: 1
  6. Quit Registry Editor.


  7. Click Start, point to Settings, click Control Panel, and then double-click Services.


  8. Click the TCP/IP Print Server service, and then click Stop.


  9. Click the Spooler service, and then click Stop.


  10. After the Spooler service has stopped, click Start.


  11. Click the TCP/IP Print Server service, and then click Start.


When the LPD service is configured with the SimulatePassThrough setting, the job data type is always RAW. Therefore, the print processor settings are ignored. For additional information about using the SimulatePassThrough setting, click the article number below to view the article in the Microsoft Knowledge Base:
Q150930 LPD Server Adds and Prints Control Codes

Additional query words:

Keywords : kbprint ntsp kbbug4.00 kbfix4.00
Version : winnt:4.0
Platform : winnt
Issue type : kbbug


Last Reviewed: October 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.