[Samba] Using working devmode from windows clients on samba
server?
Gerald (Jerry) Carter
jerry at samba.org
Sat Feb 1 16:57:46 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 31 Jan 2003 daniel.jarboe at custserv.com wrote:
> Samba 2.2.7a (built from samba RPM's) with LPRng print subsystem.
>
> I've been having troubles with some print drivers which fail to work
> properly when uploaded to the samba server whether devmode gets left as
> null or a default devmode is used. Some drivers do not leave you in a
> position where you can "tickle" the driver to generate a devmode with
> page orientation etc before things start misbehaving. Stuff usually
> works when the client installs their own drivers locally. Is there any
> way to grab the devmode generated by the windows clients and inject it
> some place in samba's files to get a working devmode so driver downloads
> with spools can work with these drivers?
Not without writing some win32 code. Effectively what you could do is to
create a local printer and then use GetPrinter() to grab the devmode of
the local printer. Then run GetPrinter() on the remote Samba printer to
get the current properties and issue a SetPrinter() with the new devmode.
If you have problems with this I can code it up in a few minutes.
Let me know. I should have done this a long time ago probably.
cheers, jerry
----------------------------------------------------------------------
Hewlett-Packard ------------------------- http://www.hp.com
SAMBA Team ---------------------- http://www.samba.org
GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc
"You can never go home again, Oatman, but I guess you can shop there."
--John Cusack - "Grosse Point Blank" (1997)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
iD8DBQE+O/yKIR7qMdg1EfYRAuu1AKCvoR6fqqXpDHBynqFCFFVb//n3kACfTgea
Shrgka7wOBzo+2XjW8qYWxI=
=RGTN
-----END PGP SIGNATURE-----
More information about the samba
mailing list