JSI Tip 1770. LPD translates line feed (LF) and carriage return (CR) to CR/LF.

Jerold Schulman

November 2, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you spool with the Line Printer Daemon (LPD), both line feed (LF) and carriage return (CR), in text-stream print print jobs, are translated to carriage return/line feed (CR/LF).

Starting with SP6, you can alter this default behavior on a per-printer basis. To disable CR/LF processing, use Regedt32 to navigate to:

HKEY_LOCAL_MACHINESystemCurrentControlSetControlPrintPrintersPrinterDriverData

where is the printer to be configured. On the Edit menu, Add Value name Winprint_TextNoTranslation, a type REG_DWORD, and set the data value to 1 in the DWORD Editor.
After exiting Regedt32.exe, use Control Panel / Services / TCP/IP Print Server / Stop, followed by Control Panel / Services / Spooler / Stop. After the Spooler has stopped, Start it and Start the TCP/IP Print Server service.

To disable CR processing only, on the Edit menu, Add Value name Winprint_TextNoCRTranslation, a type REG_DWORD, and set the data value to 1 in the DWORD Editor.
After exiting Regedt32.exe, use Control Panel / Services / TCP/IP Print Server / Stop, followed by Control Panel / Services / Spooler / Stop. After the Spooler has stopped, Start it and Start the TCP/IP Print Server service.

NOTE: If you are using SimulatePassThrough, the data type is always RAW, which ignores print processor settings.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like