From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LENNART BORGMAN Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Mon, 19 Dec 2005 12:18:48 +0100 Message-ID: <431813e4315b3a.4315b3a431813e@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1134997948 16710 80.91.229.2 (19 Dec 2005 13:12:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 13:12:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 14:12:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoKnQ-00023z-Df for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 14:11:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoKnS-00055W-Ba for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 08:11:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoJ7N-0007Cy-9X for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 06:23:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoJ7G-0007BX-K5 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 06:23:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoJ3T-0006jn-6L for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 06:19:47 -0500 Original-Received: from [130.235.208.46] (helo=piraten.student.lu.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoJ6L-0001PF-W7; Mon, 19 Dec 2005 06:22:46 -0500 Original-Received: from net.lu.se (localhost [127.0.0.1]) by piraten.student.lu.se (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0IRQ0072JSRC97@piraten.student.lu.se>; Mon, 19 Dec 2005 12:18:48 +0100 (MET) Original-Received: from [212.209.42.132] by piraten.student.lu.se (mshttpd); Mon, 19 Dec 2005 12:18:48 +0100 Original-To: Mathias Dahl , eliz@gnu.org X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.14 (built Mar 18 2003) Content-language: sv Content-disposition: inline X-Accept-Language: sv Priority: normal X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32060 Archived-At: From: Mathias Dahl > Eli Zaretskii writes: > > > If we need to use external programs at all (and I know of only one > > such case: when the printer in question is a network printer > that is > > not available as a Windows share of the form > \\server\share\printer),> then I'd suggest a free program called > PrintFile32 (available from > > http://www.lerup.com/printfile/). Configure Emacs to use it as a > > replacement for the Unix lpr program. > > > > But I'd like first to hear from the OP which of the advice he's been > > given he tried, and what and how didn't work. In most cases, it is > > not necessary to use external programs, as Emacs can do the job > > itself. > > I just wanted to say that I just tested doing what the documentation > for printer-name says; that is to set it to the name of a shared > printer in our network. > > So I set it to "//gbgfs1/gbg2b" and then called M-x lpr-buffer > > It worked. > > I did not test with colors (it is no color printer) but that probably > won't work in the same way, will it? > > Btw, I first tested without setting printer-name (which on Windows XP > has the default value PRN) and printed, and Emacs froze. Don't know > why though. I tested here at some printers to see if I was mistaken earlier. To avoid confusion I am testind just from a command shell. What I have done is this: I take some printer queues on different printers which I normally use without problems. I look at the header in printer queue w32 window to find the host for the printer queue. Then I do c:\> copy file.txt \\host-name\queue-name To my surprise it worked for the first queue. For the next queue I got The network path was not found. 0 file(s) copied. To be sure on what I am doing I then went to the host for the queue to find the share name instead of the queue name: c:\> copy file.txt \\host-name\share-name This swallowed the job but I get no output and nothing is shown in the printer queue (where I normally see all waiting jobs). I believe this is what I found last time I tested about two years ago too. It seems that in some circumstances it actually could work, but not in all. That can explain why it has been so hard trying to clear this out. This is why I am recommending using the web browser for printing with htmlize-view.el on MS Windows. It may seem awkward but it works and the output is actually nice IMHO.