help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Print To Printer GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of


From: Eli Zaretskii
Subject: Re: How To Print To Printer GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE
Date: Wed, 08 Apr 2009 18:21:13 +0300

> From: rustom <rustompmody@gmail.com>
> Date: Wed, 8 Apr 2009 07:26:43 -0700 (PDT)
> 
> At the least I need these two things
> (setq printer-name "//network/path/to/printer")
> (setq ps-printer-name t)
> 
> However this prints without the typical printer dialog that all other
> windows applications give.

That's how Emacs behaves on all platforms, not only on Windows.

The reason it does not show the Print dialog is that (1) by the above
setup you already told it what printer you want to print to, so
there's no need to ask you to select a printer; and (2) Emacs does not
(yet) support the other printing options you are used to selecting
through the Print dialog -- instead, you need to set Emacs variables.

> If I add
> (setq ps-lpr-command "C:/Program Files/gs/gs8.63/bin/
> gswin32c.exe")  ;; obviously use the correct path for you here which
> means also setup ghostscript.
> (setq ps-lpr-switches '( "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2"))
> then the dialog also appears.

The dialog that appears is popped up by gswin32c.exe, not by Emacs.

> I find this mysterious because these variables seem to be part of the
> printing package (without (require 'printing) no help is available for
> them) but yet they change the behavior of printing

They are not part of the `printing' package, they are part of the
`ps-print' package.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]