Add new framework for smb.conf(5). Please read README before trying to compile.
[Samba/gebeck_regimport.git] / docs / docbook / smbdotconf / printing / defaultdevmode.xml
blob9609038dcd9ff84ec26ae56879bb599131342f69
1 <samba:parameter xmlns:samba="http://samba.org/common">
2                 <term><anchor id="DEFAULTDEVMODE"/>default devmode (S)</term>
3                 <listitem><para>This parameter is only applicable to <link linkend="PRINTOK">printable</link> services.  When smbd is serving
4                 Printer Drivers to Windows NT/2k/XP clients, each printer on the Samba
5                 server has a Device Mode which defines things such as paper size and
6                 orientation and duplex settings.  The device mode can only correctly be
7                 generated by the printer driver itself (which can only be executed on a
8                 Win32 platform).  Because smbd is unable to execute the driver code
9                 to generate the device mode, the default behavior is to set this field
10                 to NULL.
11                 </para>
13                 <para>Most problems with serving printer drivers to Windows NT/2k/XP clients
14                 can be traced to a problem with the generated device mode.  Certain drivers
15                 will do things such as crashing the client's Explorer.exe with a NULL devmode.
16                 However, other printer drivers can cause the client's spooler service
17                 (spoolsv.exe) to die if the devmode was not created by the driver itself
18                 (i.e. smbd generates a default devmode).
19                 </para>
21                 <para>This parameter should be used with care and tested with the printer
22                 driver in question.  It is better to leave the device mode to NULL
23                 and let the Windows client set the correct values.  Because drivers do not
24                 do this all the time, setting <command moreinfo="none">default devmode = yes</command>
25                 will instruct smbd to generate a default one.
26                 </para>
28                 <para>For more information on Windows NT/2k printing and Device Modes,
29                 see the <ulink url="http://msdn.microsoft.com/">MSDN documentation</ulink>.
30                 </para>
32                 <para>Default: <command moreinfo="none">default devmode = no</command></para>
33                 </listitem>
34                 </samba:parameter>