[Samba] GetPrinter Level 2 does not get devmode

Rohit.Wadhwa at tabs.toshiba.com Rohit.Wadhwa at tabs.toshiba.com
Mon Oct 7 23:18:09 GMT 2002


Hi Jerry,

>Did you ever get the client to set it?  See the instructions in the
>Printing HOWTO one samba.org/docs

I uploaded the drivers from a Windows 2000 workstation, with the APW.
No errors were reported on the windows machine. This is supposed to set
the,
printer_info and devmode on the samba server, right? No other step from the
client
is needed to set these, as far as I know. Also, PRINTER_INFO_2
is NOT null. PRINTER_INFO_2->devmode is null, (just to clarify). I have
not checked the log while uploading, but while downloading I have and
I see a message "Returning NULL devicemode!" .

> I have checked the dump of nt_printers.tdb by tdbtool and the tdb looks
> ok. I can see the devmode properly there.

When I say I have checked the dump of nt_printers.tdb, I mean I have
visually verified. I know there
can be something wrong with the tdb, so I am going to check again.

Thanks and best regards,

Rohit.






On Thu, 10 Oct 2002 Rohit.Wadhwa at tabs.toshiba.com wrote:

> Hi all,
>
> I have uploaded the printer drivers succesfully on RedHat Linux/ Samba
> 2.2.4 server. I can download and print without any problems. But when I
do
> Windows API call GetPrinter with PRINTER_INFO_2, the devmode in
> printer_info is always null. My code looks like

Did you ever get the client to set it?  See the instructions in the
Printing HOWTO one samba.org/docs

> I have checked the dump of nt_printers.tdb by tdbtool and the tdb looks
> ok. I can see the devmode properly there.

Are you sure about this?  Did you check a level 10 debug log on the samba
box?





cheers, jerry








More information about the samba mailing list