Skip navigation

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

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_MACHINE\System\CurrentControlSet\Control\Print\Printers\<printername>\PrinterDriverData

where <printername> 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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish