<HTML>
<HEAD>
<TITLE>RISCOS Samba Server</TITLE>
</HEAD>
<BODY bgcolor=white text=black LINK="#0000FF" VLINK="#8700BA" ALINK="#FF0000">
<H1 ALIGN=centre><IMG SRC="images/logo.jpg"> RISCOS Samba Server <IMG SRC="images/logo.jpg"></H1>
<P>
<A HREF="samba_04.htm"><IMG SRC="images/left.gif" ALIGH=LEFT BORDER=0></A> <A HREF="SAMBA.htm"><IMG SRC="images/cont.jpg" ALIGH=CENTRE BORDER=0></A> <A HREF="samba_06.htm" ALIGN=right><IMG SRC="images/right.gif"  ALIGN=RIGHT BORDER=0></A>  
<HR>

<H2><A NAME="print">5 Printing</A></H2><P>
<P>
You must load !Printers before attempting to print. To print from Windows to RISCOS via !smbserver to the currently selected printer. You need to select a printer driver in Windows when setting up the network printer in exactly the same way as you would do for any other printer.<P>
Click "Add Printer" from Printer Settings and select network printer.<P>
<IMG SRC="images/print0.jpg" ALIGN=centre><P>
Enter path name of printer and click "yes" for "Do you want to print from MS-DOS based programs". <P>
<IMG SRC="images/print1.jpg" ALIGN=centre><P>
Click "Capture Printer Port".<P>
<IMG SRC="images/print2.jpg" ALIGN=centre><P>
Then select a device. e.g. LPT2. <P>
<IMG SRC="images/print3.jpg" ALIGN=centre><P>
The path would be \\drhb1\printers in the example in 4.2. If you forget to capture a printer port it can be done after the printer is installed by opening the printer's properties window, selecting the Details tab and clicking on "Capture Printer Port".<P>
<P>
!smbserver uses the command specified in smb/conf to print a file. (See "print command =" in <A HREF="smbconf.htm#printcom">smb/conf</A>). The example calls the file called lpr in &lt;samba$dir>.Resources which copies the file to the printer and then deletes it. I have come across and lpr client for RISCOS but not actually tried it.<P>
<P>
Currently queryring the printer queue will always show an empty printer queue. I've not thought of a good way to do this yet since I think the information needed is in the !printers application rather than being available via a SWI.<P>
<P> 
<HR>
<A HREF="samba_04.htm"><IMG SRC="images/left.gif" ALIGH=LEFT BORDER=0></A> <A HREF="SAMBA.htm"><IMG SRC="images/cont.jpg" ALIGH=CENTRE BORDER=0></A> <A HREF="samba_06.htm" ALIGN=right><IMG SRC="images/right.gif"  ALIGN=RIGHT BORDER=0></A>  
<P>
<I>RISCOS Samba Server</I>
</BODY>
</HTML>
