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: Wed, 21 Dec 2005 19:39:42 +0100 Message-ID: <43A9A16E.8030907@student.lu.se> References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A8842E.5090204@student.lu.se> <43A908F9.1070304@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135193048 27709 80.91.229.2 (21 Dec 2005 19:24:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2005 19:24:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 20:24:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ep9Xs-0005uU-Rd for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 20:22:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ep9Yq-0003cY-H2 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 14:23:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ep8th-0002bq-Lj for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 13:41:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ep8tg-0002b7-AH for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 13:41:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ep8tg-0002b1-0m for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 13:41:08 -0500 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ep8wd-0002TR-4W; Wed, 21 Dec 2005 13:44:11 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.069.1) id 43A9761F0000EACA; Wed, 21 Dec 2005 19:39:42 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Lennart Borgman In-Reply-To: <43A908F9.1070304@student.lu.se> 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:32142 Archived-At: Lennart Borgman wrote: > Eli Zaretskii wrote: > >> >> Go to this URL: >> >> http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prdl_pif_dwfo.asp >> >> >> and then look in the section Printing Processes. >> >> > Thanks, but that was on of the pages I have been reading. It is a good > overview to start with. I am however looking for something about where > in that picture something like > > c:\> copy file.txt \\host-name\queue-name > > ties in. (Or dito using LPT1 etc.) That page I mentioned in another > message (Print Job Formats) is at the bottom of the content table to > the left in the page above. Maybe that says a bit, but that is only > guesses. I am missing some pieces of information here. Seems like we > want more technical stuff. I have been looking around a bit more. Here is something about device drivers, spooling etc: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/graphics/hh/graphics/prnSpool_65349c7f-8e59-4d93-b5ff-0b346049b7f2.xml.asp Maybe someone can find more about using copy like above? I have not been able to. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_0r1j.asp So far the only really new thing to me in this thread has been CUPS, which I may have heard of before, but obviously forgotten. My conclusions for printing from Emacs on MS Windows are then: - The printing interfaces on MS Windows and CUPS are different in a way that you actually have to write rather separate input printing code for them or complicated conversion sw. Emacs has good support for CUPS but not for the MS Windows printing interface (that wants EMF format). - I can find nothing that makes me believe that the "copy" type solutions should work in all cases. (But I will do some more tests when I get time and I wel lcome more facts about this.) - One solution to the problem is using an external program like GhostScript. I have not tried this, but it may be a very good solution. The advantage is that with it printing capabilities in Emacs on MS Windows are the same as those on *nix like systems with CUPS. The drawback is that is more job for the user since another program has to be installed. - Another solution is the one I proposed (and which made some people upset for some reason) is using the web browser + htmlize-view.el/htmlize.el to print. The advantage is that you do not have to install any more programs, just to elisp files. You get printouts in colors of exactly the text that you have on the screen. There is very little job to do to get this working. The drawbacks is that this is not the way you print in Emacs on other systems (though you can use it on those systems too). You also have to know a little bit on the elisp level to add the files to your load-path and require htmlize-view from your .emacs. I think the last solutions is easier. Other may differ. I think the best one can do is to summarize it like above and let the user choose. Nothing is right or wrong here. We are looking for working solutions. Please add more advantages and drawbacks if you can see some!