all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Help-gnu-emacs@gnu.org
Subject: Re: Problems setting up printing for first time (Windows)
Date: Tue, 31 May 2011 02:01:38 -0400	[thread overview]
Message-ID: <E1QRI1K-0002n7-HZ@fencepost.gnu.org> (raw)
In-Reply-To: <31730282.post@talk.nabble.com> (message from spinner on Sun, 29 May 2011 18:38:08 -0700 (PDT))

> Date: Sun, 29 May 2011 18:38:08 -0700 (PDT)
> From: spinner <michaelcrain@hotmail.com>
> 
> First, I tried printing through GhostScript. My emacs file code is:
> 
> (setq ps-lpr-command "c:\Program Files\gs\gs8.71\bin\gswin32c.exe")
> (setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2"))
> (setq ps-printer-name t)
> 
> Next, I try to print a simple text file from my buffer with "M-x
> ps-print-buffer". Nothing prints. 

Does it work saving the ps-print output to a file (by invoking it with
an argument, "C-u M-x ps-print-buffer RET", and then manually invoking
gswin32c on that file with the command-line options mentioned in the
ps-lpr-switches variable?  If it doesn't work, perhaps the
instructions in the Emacs manual need to be updated for the latest
versions of GhostScript; please see its latest docs and try to figure
out the right switches.  If you find there's a need for a change,
please report a documentation bug with "M-x report-emacs-bug RET".

> I see emacs formatting and then gives me a message "Printing...done" but
> nothing prints. Online resources that I've read say that a pop-up window
> should appear giving my printer choices but the pop-up doesn't appear.

This seems to indicate that gswin32c.exe is never invoked at all, or
invoked with bad arguments.  After you do this, is there something
interesting in a buffer named " *print-region-helper*" (with the
leading space)?

Also, does it help to use 8+3 alias of "Program Files", something like
"PROGRA~1" (use "dir /x" from the Windows shell prompt to see its real
alias)?  If so, reinstalling GhostScript into a directory that doesn't
have whitespace in its name might solve the problem.

> My local printer is attached to my computer via a wireless router.

What is that printer's port?  You should be able to see that in the
printer's Properties, on the "Port" tab.

Also, does the command "net view" show the printer, and if so, under
which name?

Another thing to try is to use the "net use" command, as explained in
the Emacs manual (in the node "Windows Printing").

Finally, you could install PrintFile (http://www.lerup.com/printfile/)
and configure it to be your spooler, by putting this in your .emacs:

  (setq printer-name nil)
  (setq lpr-command "/path/to/PrintFile/PrFile32.exe")
  (setq lpr-switches '("/q"))

You will also need to configure PrintFile by launching it manually
once and going through its "Settings" dialogs.  PrintFile is a very
good utility, but not Free Software, unfortunately (no sources are
released), so we cannot recommend it in the Emacs manual.  It _is_
"free" as in "free beer", though.



      reply	other threads:[~2011-05-31  6:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30  1:38 Problems setting up printing for first time (Windows) spinner
2011-05-31  6:01 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1QRI1K-0002n7-HZ@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=Help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.