Subject: Re: printing, win95, network printer

From: Brad Haack <[email-masked]>
Date: Thu, 23 Jan 1997 11:17:27 -0600 (MDT)

Thanks, this works, almost anyway.  The printer is grabbing paper from the
11x17 tray, altho the output is formatted for 8.5x11.  I tried forcing the
printer tray to the right one (instead of automatic) with the win95
printer driver setup stuff, but it still grabbed the wrong paper (its an
HP5Si). Possibly something wrong in ps-print-prologue ? 

ps-paper-type is ps-letter
ps-lpr-command's value is "lpr"
ps-lpr-switches's value is nil
It looks like ps-lpr-command and ps-lpr-switches don't get used since the 
file is sent with write-region from ps-do-despool.

Brad
[email-masked]

On Tue, 21 Jan 1997 [email-masked] wrote:

> I find it easier not to go via a spool file or COPY command at all,
> but rather to have Emacs write directly to the printer.  Here's the
> relevant
> Elisp code.  Note "w95-lpr-buffer"...
> 
>      paul
> 
> ;;; w95-ps-print
> 
> (require 'ps-print)
> (defvar w95-lpr-buffer "\\\\chips1\\syseng"
>   "*Printer to use for PostScript print functions.")
> 
> (defun w95-ps-print-buffer-with-faces ()
>   "Generate and print a PostScript image of the buffer.
> 
> The printout is sent to the printer specified by variable
> w95-lpr-buffer (by default \\\\chips1\\syseng).  If the current
> buffer has font lock active, comments are printed in italics,
> and keywords are bold."
>   (interactive)
>   (ps-print-buffer-with-faces w95-lpr-buffer)
> )

snip snip