Good Luck and remember that we offer convenient install and support services.
printing to a printer Printers are defined in sql-ledger.conf %printer = ( 'Default' => 'lpr', 'Color' => 'lpr -PEpson' ); Check in your /etc/printcap file for the names of available printers. If you have LaTeX installed set $latex = 1 in sql-ledger.conf To send the document to the printer check the "Postscript" or "PDF" format, enter the number of copies and click on the "Print" button. The printer you enter in your preferences is the default printer. You can choose any other available printer. This makes it possible to print from anywhere on the network to any printer. Note: html format is for screen preview. Use the "Print" option from your browser to print to a printer. Using samba to send printjobs to a printer attached to a Windows XP workstation The next part applies to roll your own print filters only. If you use CUPS or LPRng your milage may vary but you can still use this as a guide how it works. I use the printer 'Epson' as an example which is attached to a XP workstation called Raven. /etc/printcap entry on the server which runs lpd epson:Epson\ :sh:\ :lp=/dev/null:\ :sd=/var/spool/output/epson:\ :if=/usr/libexec/lpr/epson/prnfilter:\ # end of entry in /etc/printcap # prnfilter shell script #!/bin/sh # Filter for Epson Stylus PATH="$PATH:/usr/local/bin" #read first_line read tmp first_line=`echo $tmp | cut -b1-2 | sed -n '1p'` first_chr=`expr "$first_line" : '\(.\)'` first_two=`expr "$first_line" : '\(..\)'` rewindstdin if [ "$first_two" = "%!" ]; then # Postscript file gs @st640p.upp -dSAFER -dNOPAUSE -q -sOutputFile=/tmp/$$ - else # text file cat > /tmp/$$ echo -n "^L" >> /tmp/$$ smbclient '\\Raven\Epson' "" -c 'printmode text' fi smbclient '\\Raven\Epson' "" -P -c "print /tmp/$$" rm /tmp/$$ # EOF rewindstdin is a small program to rewind the filehandle for STDIN save the next part up to EOF to a file rewindstdin.c and compile #include
