The LPD service can be reconfigured to ignore the format
control command from the LPR client and always assign the RAW data type. Use one
of the appropriate sections below to reconfigure the LPD service.
Configuring SimulatePassThrough for all printers in Windows XP Professional and Windows Server 2003
To assign the RAW data type regardless of the control file
contents in Windows XP Professional and in Windows Server 2003, follow these steps.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
- Start Registry Editor.
- From the HKEY_LOCAL_MACHINE subtree, click the following
subkey:
\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters
- On the Edit menu, click New, and then click DWORD Value.
- Name the new entry SimulatePassThrough.
- Double-click the SimulatePassThrough entry, and then change the data value to 1.
Note The
default data value is 0. A 0 data value informs LPD to assign data types according to the
control commands. - Click OK.
- Quit Registry Editor.
Configuring SimulatePassThrough for all printers in Windows NT 4.0 and Windows 2000
To assign the RAW data type regardless of the control file
contents in Windows NT 4.0 and Windows 2000, 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.
- Run Registry Editor (REGEDT32.EXE).
- From the HKEY_LOCAL_MACHINE subtree, go to the following
key:
\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters
- On the Edit menu, click Add Value.
- Add the following:
Value Name:
SimulatePassThrough
Data Type: REG_DWORD
Data: 1
NOTE: The
default value is 0, which informs LPD to assign data types according to the
control commands.
Configuring SimulatePassThrough in Windows NT 3.51
In Windows NT 3.51 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 as the LPDSVC key and then duplicating the
information in the LPDSVC key to the LPD key.
For Windows NT 3.51 to
assign the RAW data type, 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.
- Run Registry Editor (REGEDT32.EXE).
- From the HKEY_LOCAL_MACHINE subtree, go to the following
key:
\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters
- On the Edit menu, click Add Value.
- Add the following:
Value Name:
SimulatePassThrough
Data Type: REG_DWORD
Data: 1
NOTE: The
default value is 0, which informs LPD to assign data types according to the
control commands. - To work around the problem mentioned above, create an LPD
key at the same level of the LPDSVC key.
- Click the LPDSVC Key, click Save Key from the Registry
menu, and then save the file as LPDSVC.KEY.
- Click the LPD key created in step 5.
- Click Restore on the Registry menu, click the file created
in step 6, and then click OK.
- A warning message appears. Click OK and then quit Registry
Editor.
- At a command prompt, type:
net stop
lpdsvc - At a command prompt, type:
net start
lpdsvc