Sunday, February 14, 2010

Printing from Unix to Windows (Part 2)

In Part 1, we talked about how to print from any non-Windows machine (such as a Unix machine) that supports the lpr protocol to a printer accessible from a Windows system.

When a print job comes from a non-Windows system, it can be non-formatted (i.e. plain text, or it can be formatted (e.g. a PCL file or a PostScript file). When the file arrives at a Windows system (your XP machine), the lpd does some formatting. For example, if a text file contains long lines, it will wrap a long line at its right margin instead of truncating the long line at the right margin. That’s nice.

However, if the file is already formatted in certain format, you probably don’t want Windows to add format to it again. To achieve this, all you need to do is to navigate to the hive
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters, and add a “new -> DWORD value” key named “SimulatePassThrough”, and set its value to 1.

After adding this key, you have to restart the “Printer Spooler” services, which will also restart the “TCP/IP Print Server” service. Just click OK.

This regkey tells Windows’ lpd not to add any formatting to the file, just simply pass it through to the printer.



Click here to see a complete list of articles


To contact us: uniprint.user@gmail.com.

 


No comments:

Post a Comment