From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Sat, 24 Dec 2005 16:39:25 +0200 Message-ID: References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A8842E.5090204@student.lu.se> <43A908F9.1070304@student.lu.se> <43A9B6D5.9010205@student.lu.se> <43A9DBB8.3010204@student.lu.se> <43AA5D94.8000602@student.lu.se> <43AB10BE.1040104@student.lu.se> <43AC0473.7030109@student.lu.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135435254 31558 80.91.229.2 (24 Dec 2005 14:40:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2005 14:40:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 24 15:40:52 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EqAZn-0002QX-Km for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Dec 2005 15:40:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqAat-0003Fq-8A for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Dec 2005 09:41:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqAZd-0003FV-4M for help-gnu-emacs@gnu.org; Sat, 24 Dec 2005 09:40:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqAZY-0003Ev-EI for help-gnu-emacs@gnu.org; Sat, 24 Dec 2005 09:40:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqAZV-0003Ec-Nl for help-gnu-emacs@gnu.org; Sat, 24 Dec 2005 09:40:35 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EqAYz-00058I-FX for help-gnu-emacs@gnu.org; Sat, 24 Dec 2005 09:40:01 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-207-150.inter.net.il [83.130.207.150]) by romy.inter.net.il (MOS 3.7.2-GA) with ESMTP id DFQ76457 (AUTH halo1); Sat, 24 Dec 2005 16:39:21 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Sat, 24 Dec 2005 15:49:17 +0200) 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:32205 Archived-At: > Date: Sat, 24 Dec 2005 15:49:17 +0200 > From: Eli Zaretskii > > Another thing to try is to use the PRINT command: > > print /d:\\printserver\sharename drive:\path\filename.txt > > where filename.txt is the text file to print. Does that work for you? And yet another is via the Windows ShellExecute API, which has an interface in Emacs: (w32-shell-execute "print" "d:\\path\\to\\document.txt") Alas, this only works for files whose shortcut menu (the one you see when you right-click the file's name in the Explorer) includes the "Print" option. But at least .txt and .html files should have this, so you could, e.g., write the output of your HTML-izer to a file and print it with the above. This command usually sends to the default printer.