all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Printing from WindowXP version of emacs
Date: Fri, 23 Dec 2005 15:06:43 +0100	[thread overview]
Message-ID: <43AC0473.7030109@student.lu.se> (raw)
In-Reply-To: <uu0d0i5pg.fsf@gnu.org>

Eli Zaretskii wrote:

>The text translated to printer commands (i.e. RAW) comes back to the
>spooler, so I think the spooler must know how to handle it.
>  
>
After som new tests I believe your assumption is right. Data from "copy" 
etc probably always goes into the first step in the spoolers handling of 
the data. See further below for more.

>  
>
>>We are talking about two problems. I wanted it to be very clear that 
>>there are only two options that we are aware of now to get color printing:
>>
>>    1) Using the externa program Ghostscript
>>    2) Using the elisp file htmlize-view.el (or something similar)
>>    
>>
>
>      3) Use a PostScript printer.
>  
>
I think we agree more and more (or at least are more and more clear). I 
do not know if this is a good advice or not, I seldom buy a printer. In 
many environments it is of course like "choose your parents", but I am 
sure you know that  ;-)

>  
>
>>I would like to solve that too if we can. At the moment I am out of 
>>ideas. Not totally of course (see above), but I do not know what to test 
>>further.
>>    
>>
>
>Can you try ``connecting'' that printer to LPT1 or a similar port?
>Click Start->Settings->Printers and Faxes, then right-click on the
>printer's name, select Properties, and click on the Ports tab.  Find a
>free printer port and click on its checkbox.  Then see if COPY and/or
>Emacs can print to that port as if it were a file (in Emacs, set
>printer-name to that port).
>
Is this different from "net use" in some respect? I have used that in 
the command file below. The command file does two things:

  1) copy file.txt \\host\queue
  2) net use lpt1: \\host\queue
      copy file.txt lpt1:

I have done this for one printer using different queue names. The result 
is that it works for one name, but not for the other. I also used a 
third name, but I am not quite clear if this is a queue name. It appears 
however in the printer queue window header. (I did not have time to 
check this - perhaps I will do that later.) When it worked it worked in 
both case 1 and 2 above.

To make this more understandable I give the command file and the output 
results below.

I could check this more in details than I have. I do not know however if 
there is more to gain from that. Perhaps it is better that other people 
try to test this too. In my case I believe this means that I can print 
from Emacs simple black and white. I takes some time to test which queue 
to use, but the command file below could make that job easier of course. 
I however still suggest avoiding that job, printing through the web 
browser instead.

I also do not know if there is any reason to believe that one queue 
alwasy work on any printer (if there are several queues).

Here is the command file *print-copy-test.cmd*:
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@setlocal
        @if not "" == "%1" goto print
        @echo.
        @echo Usage: prtest \\host\queu
        @echo.
        @goto end
:print
        @echo.
        @echo.
        @echo *Print tests of %1 ...
        @echo ============================
        net use lpt1: /d
        @rem net use lpt1:
        @rem dir %1
        @rem @echo %errorlevel%
        @rem goto end

        @echo.
        @echo.
        @echo **** Print test 1 of %1
        @echo @rem Print test 1 of %1 >  temp1.cmd
        @echo copy temp1.cmd %1       >> temp1.cmd
        @rem @type temp1.cmd
        @call temp1.cmd
       
        @echo.
        @echo.
        @echo **** Print test 2 of %1
        @echo @rem Print test 2 of %1    > temp2.cmd
        @echo net use lpt1: %1           >> temp2.cmd
        @echo if errorlevel 1 goto end   >> temp2.cmd
        @echo copy temp2.cmd lpt1        >> temp2.cmd
        @echo net use lpt1: /d           >> temp2.cmd
        @echo :end                       >> temp2.cmd
        @rem @type temp2.cmd
        @call temp2.cmd

        @echo.
        @echo.
        @rem net use lpt1:

:end
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<





And here are the outputs of my tests using the command file above (I 
removed the output from the first net use /d):

 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
C:\test>print-copy-test.cmd \\host\printer-name


*Print tests of \\host\printer-name ...
============================

**** Print test 1 of \\host\printer-name

C:\test>copy temp1.cmd \\host\printer-name
The network path was not found.
        0 file(s) copied.


**** Print test 2 of \\host\printer-name

C:\test>net use lpt1: \\host\printer-name
System error 67 has occurred.

The network name cannot be found.


C:\test>if errorlevel 1 goto end


C:\test>

****************************************

C:\test>print-copy-test.cmd \\host\printer-nameduplex


*Print tests of \\host\printer-nameduplex ...
============================

**** Print test 1 of \\host\printer-nameduplex

C:\test>copy temp1.cmd \\host\printer-nameduplex
        1 file(s) copied.


**** Print test 2 of \\host\printer-nameduplex

C:\test>net use lpt1: \\host\printer-nameduplex
The command completed successfully.


C:\test>if errorlevel 1 goto end

C:\test>copy temp2.cmd lpt1
        1 file(s) copied.

C:\test>net use lpt1: /d
lpt1 was deleted successfully.



C:\test>

****************************************

C:\test>print-copy-test.cmd \\host\printer-namepcl


*Print tests of \\host\printer-namepcl ...
============================

**** Print test 1 of \\host\printer-namepcl

C:\test>copy temp1.cmd \\host\printer-namepcl
        1 file(s) copied.


**** Print test 2 of \\host\printer-namepcl

C:\test>net use lpt1: \\host\printer-namepcl
The command completed successfully.


C:\test>if errorlevel 1 goto end

C:\test>copy temp2.cmd lpt1
        1 file(s) copied.

C:\test>net use lpt1: /d
lpt1 was deleted successfully.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

  reply	other threads:[~2005-12-23 14:06 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-15 15:31 Printing from WindowXP version of emacs sbrown
2005-12-15 18:30 ` Mathias Dahl
2005-12-15 18:35 ` Lennart Borgman
2005-12-16  7:50   ` Eli Zaretskii
2005-12-16  8:29     ` Lennart Borgman
2005-12-16  8:53       ` Eli Zaretskii
2005-12-16 14:53         ` Lennart Borgman
2005-12-16 15:31           ` Eli Zaretskii
2005-12-17  2:42             ` Lennart Borgman
2005-12-17  8:20               ` Eli Zaretskii
2005-12-17  9:38                 ` Peter Dyballa
2005-12-17 11:11                   ` Eli Zaretskii
2005-12-17 15:50                     ` Lennart Borgman
2005-12-17 16:31                       ` Peter Dyballa
2005-12-17 21:25                         ` Lennart Borgman
2005-12-17 23:55                           ` Peter Dyballa
2005-12-21 18:15                             ` Lennart Borgman
2005-12-21 21:51                               ` Eli Zaretskii
2005-12-21 22:50                                 ` Lennart Borgman
2005-12-21 23:41                                   ` Edward O'Connor
2005-12-21 23:51                                     ` Lennart Borgman
2005-12-17  9:51                 ` Lennart Borgman
2005-12-17 13:11                   ` Lennart Borgman
     [not found]               ` <mailman.19684.1134911288.20277.help-gnu-emacs@gnu.org>
2005-12-18 18:22                 ` Ilya Zakharevich
2005-12-18 19:23                   ` Eli Zaretskii
     [not found]                   ` <mailman.19772.1134933877.20277.help-gnu-emacs@gnu.org>
2005-12-19 17:53                     ` Ilya Zakharevich
2005-12-19 21:43                       ` Eli Zaretskii
     [not found]                       ` <mailman.19861.1135028638.20277.help-gnu-emacs@gnu.org>
2005-12-20  1:11                         ` Ilya Zakharevich
2005-12-20  4:54                           ` Eli Zaretskii
     [not found]                           ` <mailman.19893.1135054520.20277.help-gnu-emacs@gnu.org>
2005-12-20 22:40                             ` Ilya Zakharevich
2005-12-21  4:42                               ` Eli Zaretskii
     [not found]                               ` <mailman.20004.1135140203.20277.help-gnu-emacs@gnu.org>
2005-12-22 23:11                                 ` Ilya Zakharevich
2005-12-23  8:41                                   ` Eli Zaretskii
     [not found]                                   ` <mailman.20241.1135327583.20277.help-gnu-emacs@gnu.org>
2005-12-30  0:38                                     ` Ilya Zakharevich
2005-12-30 11:44                                       ` Eli Zaretskii
     [not found]                                       ` <mailman.20871.1135945105.20277.help-gnu-emacs@gnu.org>
2006-01-05  6:53                                         ` Ilya Zakharevich
2006-01-05 16:39                                           ` Eli Zaretskii
     [not found]                                           ` <mailman.21485.1136479302.20277.help-gnu-emacs@gnu.org>
2006-01-07 12:02                                             ` Ilya Zakharevich
2006-01-07 12:55                                               ` Eli Zaretskii
2005-12-20 14:45                         ` Peter Boettcher
2005-12-20 20:21                           ` Eli Zaretskii
2005-12-20 22:22                             ` Lennart Borgman
2005-12-21  4:34                               ` Eli Zaretskii
2005-12-21  7:49                                 ` Lennart Borgman
2005-12-21 18:39                                   ` Lennart Borgman
2005-12-21 19:33                                   ` Eli Zaretskii
2005-12-21 20:11                                     ` Lennart Borgman
2005-12-21 22:15                                       ` Eli Zaretskii
2005-12-21 22:48                                         ` Lennart Borgman
2005-12-22  4:38                                           ` Eli Zaretskii
2005-12-22  8:02                                             ` Lennart Borgman
2005-12-22 19:37                                               ` Eli Zaretskii
2005-12-22 20:46                                                 ` Lennart Borgman
2005-12-23  8:21                                                   ` Eli Zaretskii
2005-12-23 14:06                                                     ` Lennart Borgman [this message]
2005-12-23 15:20                                                       ` Eli Zaretskii
2005-12-24 13:49                                                         ` Eli Zaretskii
2005-12-24 14:39                                                           ` Eli Zaretskii
2005-12-24 14:58                                                             ` Eli Zaretskii
2005-12-16  9:26       ` Peter Dyballa
2005-12-16 10:45         ` Eli Zaretskii
2005-12-16  9:19     ` Peter Dyballa
2005-12-16 10:46       ` Eli Zaretskii
2005-12-16 14:19       ` Lennart Borgman
     [not found]   ` <mailman.19545.1134911104.20277.help-gnu-emacs@gnu.org>
2005-12-19  9:58     ` Mathias Dahl
2005-12-19 21:25       ` Eli Zaretskii
     [not found]       ` <mailman.19857.1135027571.20277.help-gnu-emacs@gnu.org>
2005-12-20  7:41         ` Mathias Dahl
2005-12-20 19:58           ` Eli Zaretskii
2005-12-20 20:59             ` Drew Adams
2005-12-15 19:36 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2005-12-15 19:36 Jay Bingham
2005-12-19 11:18 LENNART BORGMAN
2005-12-19 21:29 ` Eli Zaretskii
2005-12-19 22:11   ` Lennart Borgman
2005-12-19 23:05     ` Eli Zaretskii
2005-12-19 23:30       ` Lennart Borgman
2005-12-20  4:30         ` Eli Zaretskii
     [not found] <mailman.19804.1134991437.20277.help-gnu-emacs@gnu.org>
2005-12-19 16:28 ` Mathias Dahl
2005-12-20 10:58 LENNART BORGMAN
     [not found] <mailman.19907.1135077565.20277.help-gnu-emacs@gnu.org>
2005-12-20 17:15 ` Mathias Dahl
2006-01-03  0:49 BRUCE INGALLS
2006-01-03  5:10 ` Eli Zaretskii
2006-01-03  9:44 ` Peter Dyballa
     [not found] ` <mailman.21202.1136265134.20277.help-gnu-emacs@gnu.org>
2006-01-03 13:06   ` Chris McMahan
2006-01-03 19:18     ` Eli Zaretskii
2006-01-03 21:52       ` Lennart Borgman
     [not found]       ` <mailman.21297.1136325265.20277.help-gnu-emacs@gnu.org>
2006-01-03 22:08         ` David Kastrup
2006-01-03 22:12           ` Lennart Borgman
2006-01-03 13:08 LENNART BORGMAN
2006-01-03 19:20 ` Eli Zaretskii
2006-01-04  0:34 BRUCE INGALLS
2006-01-04 10:00 ` Peter Dyballa
2006-01-05  1:56   ` BRUCE INGALLS
2006-01-05 13:01     ` Peter Dyballa
2006-01-05 15:41       ` Lennart Borgman
2006-01-05 21:17         ` Peter Dyballa
2006-01-06  8:39           ` Eli Zaretskii
2006-01-05 20:44       ` Eli Zaretskii
2006-01-05 21:18         ` Peter Dyballa
2006-01-06  8:36           ` Eli Zaretskii
2006-01-06 11:59             ` Peter Dyballa
2006-01-06 14:07               ` Eli Zaretskii
2006-01-04  5:10 BRUCE INGALLS
2006-01-04  8:45 LENNART BORGMAN
2006-01-04 18:22 ` Eli Zaretskii
2006-01-04 19:14   ` Lennart Borgman
2006-01-05  1:17 ` BRUCE INGALLS
2006-01-05  9:24 LENNART BORGMAN
2006-01-05 16:43 ` Eli Zaretskii
2006-01-05 21:01   ` Lennart Borgman
2006-01-06  9:09     ` Eli Zaretskii
2006-01-07  5:00 BRUCE INGALLS
2006-01-07  9:18 ` Eli Zaretskii
2006-01-08  1:06 BRUCE INGALLS
2006-01-08  4:12 ` Eli Zaretskii
2006-01-09  8:29 LENNART BORGMAN
2006-01-09 11:42 ` Lennart Borgman
2006-01-10  3:13   ` BRUCE INGALLS
2006-01-10 10:19 LENNART BORGMAN

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=43AC0473.7030109@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --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.