opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-emacs-windows@gnu.org 21 July 2012 • 2:25AM -0400

[h-e-w] Printing - At Wit's End
by Michael Flynn

REPLY TO AUTHOR
 
REPLY TO GROUP




I'm going crazy trying to get postscript printing working.
Previously, whenever I installed emacs on windows, I just needed to
set the printer names and Hey Presto! it worked.
I have looked on Wiki and followed the example.  I did this:

Installed ghostscript and gsview
Ensured the .exe files were in the path.
Put this (and a hundred different combos) in my .emacs

;; Set up printing
(message "Set up printing")


(setenv "GS_LIB" "C:/Program Files/gs/gs9.04/lib")
(setq ps-lpr-command "C:/Program Files/gs/gs9.04/bin/gswin64c.exe")
;;(setq ps-lpr-command "C:/Program Files/Ghostgum/gsview/gsprint.exe")
;; tried this too - no luck
(setq ps-lpr-switches '("-q" "-query" "-dNOPAUSE" "-dBATCH"))
;;(setq ps-printer-name "//SCU-DS280R1/Dell 2145cn Color Laser MFP PS"
)  ;; uncommenting this and taking -query option out of
ps-lpr-switches does not affect behavior

;; end Set up printing


What happens is that print-buffer works but if I execute
ps-print-buffer no errors appear but nothing much else happens.   If I
watch the *Messages* buffer I see the message "Printing..." which soon
changes to "Printing...done."   But nothing shows at the printer.
If I try to exit Emacs, it warns that there are processes still
running and do I really want to Exit.

If from the windows command prompt I use gsprint to print a .pdf file,
it prints ok.



Mike


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.