daniel.jarboe@custserv.com
2003-Jan-31 17:54 UTC
[Samba] Using working devmode from windows clients on samba server?
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? Thanks for any suggestions, ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
Gerald (Jerry) Carter
2003-Feb-01 16:57 UTC
[Samba] Using working devmode from windows clients on samba server?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 31 Jan 2003 daniel.jarboe@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-----
daniel.jarboe@custserv.com
2003-Feb-03 13:23 UTC
[Samba] Using working devmode from windows clients on samba server?
>> Stuff usually works when the client installs their own driverslocally.>> 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 thedevmode> of the local printer. Then run GetPrinter() on the remote Sambaprinter> 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. >Glad it's simple! I'd really appreciate this, and I imagine others would find it handy too. I no longer have windows devel tools unless you count VBA a la MS Office macros, so if you could find the time to whip something together that would be great. I really appreciate you offering, thank you. ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
daniel.jarboe@custserv.com
2003-Feb-13 14:08 UTC
[Samba] Using working devmode from windows clients on samba server?
Any luck with this? Gerald (Jerry) Carter wrote:> 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.Also, "remote Samba printer" means the actual samba printer, not one installed on the client, right? So I could give the remote Samba printer a working devmode on the server and *new* clients can do the automatic driver download and have a working devmode already set? Thanks for letting me know, ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
Gerald (Jerry) Carter
2003-Feb-13 17:34 UTC
[Samba] Using working devmode from windows clients on samba server?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 13 Feb 2003 daniel.jarboe@custserv.com wrote:> Any luck with this?Not yet. Sorry. Give me till Monday.> Also, "remote Samba printer" means the actual samba printer, not one > installed on the client, right? So I could give the remote Samba > printer a working devmode on the server and *new* clients can do the > automatic driver download and have a working devmode already set?Yup. 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+S9c0IR7qMdg1EfYRAvCrAJ0Qmi0uSxymYZBJzvdCSZygNkHtKwCgsUyX FlMTgjPB5sotZ3w0SN+rE6w=fgjS -----END PGP SIGNATURE-----
daniel.jarboe@custserv.com
2003-Feb-21 12:13 UTC
[Samba] Using working devmode from windows clients on samba server?
> > Any luck with this? > > Not yet. Sorry. Give me till Monday. > > > Also, "remote Samba printer" means the actual samba printer, not one > > installed on the client, right? So I could give the remote Samba > > printer a working devmode on the server and *new* clients can do the > > automatic driver download and have a working devmode already set? > > Yup.Question again... once this is complete, will the copied devmode be set for new printers when admin selects the driver from the drop down box (Properties, Advanced tab, Driver:), or would admin need to run your program to copy a devmode each time the new print share is created? Thanks, ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.