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 21:11:01 +0100 Message-ID: <43A9B6D5.9010205@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 1135196050 5709 80.91.229.2 (21 Dec 2005 20:14:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2005 20:14:10 +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 21:14:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpAJu-0003yK-VC for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 21:12:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpAKs-0006TR-LJ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 15:13:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpAKb-0006T1-0F for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 15:13:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpAKY-0006QF-EU for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 15:13:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpAKY-0006Q1-BX for help-gnu-emacs@gnu.org; Wed, 21 Dec 2005 15:12:58 -0500 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EpAN1-00024i-0S; Wed, 21 Dec 2005 15:15:31 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.069.1) id 43A9215400039258; Wed, 21 Dec 2005 21:11:01 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: 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:32145 Archived-At: Eli Zaretskii wrote: >>Date: Wed, 21 Dec 2005 08:49:13 +0100 >>From: Lennart Borgman >>CC: help-gnu-emacs@gnu.org >> >> >> >>>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.) >> >> > >AFAIU, these queues are watched by the spooler, which sends the text >to a printer processor for the designated printer. The printer >processor converts the text into a data stream suitable for the >printer hardware (e.g., a stream of PCL commands), and then sends that >data stream back to the spooler. The spooler then sends the data to >the relevant printer monitor, which actually controls the printer's >hardware port. > It think I saw something like this for ASCII input only. Actually the printer processor first calls GDI which produces EMF that is send to the printer driver. So this can print text (only ASCII actually if I remember correctly). That should mean that the above "copy" should work. However I do not remember that I saw anything about exactly when this works. Do you have an exact link where you found this? Obviously my test fails for some printers (most of those I have tried actually) so there must be something more. Last time I looked into this I stopped about here because I thought it was not worth the trouble. As far as I can see it will only handle ASCII text when it works. I have seen very little that makes me believe that GDI can handle PostScript and convert that to EMF in the above scenario. Have you seen something suggesting this? (The only thing I have seen was something that could have been that for NT4 (another print job format), but I am not sure and it seems to be gone in later MS Windows versions.)