SimulatePassThrough

M

Mario Aeby

Hi!

I'm trying to print from an Apple iBook to Windows Server 2003 using
LPR. This doesn't work - in the event log, i get this error message:

Illegal format used for commands received from 192.168.0.4 : service
refused.

After hours of searching the web, i finally found out that this has
something to do with the data sent over LPR - it's postscript, which
isn't supported by LPDSVC. Since i'm not able to set the Datatype to
TEXT, i have to solve this problem on the server-side.

There seems to be a registry-key which should solve the problem -
unfortunately, there seem to be at least 3 different locations and
names for this registry key (LPDSVC, Printers\<Printername>,
Printers\<Printername>\PrinterDriverData) so i got a little bit
confused.

Can anyone give me the right location, names and values for the
registry-keys which tell Windows to pass the raw lpr-data to the
printer driver?!

Kind regards
Mario
 
A

Alan Morris\(MSFT\)

There are two registry keys that allow passing the data through the LPD
Service without munging the header.

This KB article explains how to set the LPD Service on ALL the printers
http://support.microsoft.com/default.aspx?scid=kb;en-us;150930
LPD Server Adds and Prints Control Codes


This KB article explains how to set an individual printer
http://support.microsoft.com/default.aspx?scid=kb;en-us;168457
Configuring Individual Printers to Passthrough LPR Print Jobs


If you just want to set the one printer and the LPD Service has already
accepted a job from the TCP client, then LPD Service has already written the
LpdPrinterPassThrough key at this location. The default value is 0. Set it
to 1 and net stop lpdsvc, net stop spooler, net start spooler, net start
lpdsvc.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\printerna
me\PrinterDriverData

Value Name: LpdPrinterPassThrough
Data Type: REG_DWORD
Value Data: 1


--
Alan Morris
Microsoft Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top