* network printing on an Win2k network.
@ 2003-04-07 18:25 Robert Correllus
2003-04-08 4:18 ` Eli Zaretskii
[not found] ` <mailman.4255.1049771971.21513.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Robert Correllus @ 2003-04-07 18:25 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1864 bytes --]
This week-end our IT staff changed our network from an NT based server
to a win2k server. I edited my ".emacs" file to reflect the changes,
using the NT net address format that had been working, but now I don't
seem to be able to print. Does any one have any ideas? I have included
the print section from my .emacs file. The server named "erp" was the
NT server and rsema3-ftpprint is the new server.
;; Set Printer Name
;;(setq ps-printer-name "\\\\rsema3-ftpprint\\HPLJ5000-PS")
;;(setq ps-printer-name "\\\\rsema3-ftpprint\\HPLJ4100")
;;(setq ps-printer-name "\\\\erp\\HPLJ4100")
;;(setq ps-printer-name "C:/PRN")
(require 'ps-print)
(setq ps-lpr-command "print")
;(setq ps-lpr-switches "\\\\rsema3-ftpprint\\HPLJ4100"); the printer
name
(setq ps-lpr-switches "\\\\rsema3-ftpprint\\HPLJ5000-ps"); the printer
name
(setq ps-lpr-buffer "c:\\temp\\psspool.ps") ; a tmp spool file
results of net :
************************************************************************
**
Z:\>net view \\rsema3-ftpprint
Shared resources at \\rsema3-ftpprint
Share name Type Used as Comment
------------------------------------------------------------------------
-------
Canton Fiery X3E
Print Canton Fiery X3E
HPLJ2200 Print HP LaserJet 2200
HPLJ4100 Print HP LaserJet 4100 Series PCL
HPLJ4100-MFFLR
Print HPLJ4100-MFFLR
HPLJ5000-PCL Print HPLJ5000 Series PCL
HPLJ5000-PS Print HPLJ5000 Series PS
MinoltaDi251-PCL
Print Minolta Di251-PCL
MinoltaDi251-PS
Print Minolta Di251-PS
The command completed successfully.
************************************************************************
***
Robert Correllus
[-- Attachment #1.2: Type: text/html, Size: 8974 bytes --]
[-- Attachment #2: Type: text/plain, Size: 151 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: network printing on an Win2k network.
2003-04-07 18:25 network printing on an Win2k network Robert Correllus
@ 2003-04-08 4:18 ` Eli Zaretskii
[not found] ` <mailman.4255.1049771971.21513.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2003-04-08 4:18 UTC (permalink / raw)
> From: "Robert Correllus" <rcorrellus@fibersense.com>
> Date: Mon, 7 Apr 2003 14:25:19 -0400
>
> This week-end our IT staff changed our network from an NT based server
> to a win2k server. I edited my ".emacs" file to reflect the changes,
> using the NT net address format that had been working, but now I don't
> seem to be able to print. Does any one have any ideas?
The manual does (see the section "MS-DOS Printing"): use the "net
use" command to map the networked printer to a printer port such as
LPT3, then set ps-printer-name to that port's name.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.4255.1049771971.21513.help-gnu-emacs@gnu.org>]
* Re: network printing on an Win2k network.
[not found] ` <mailman.4255.1049771971.21513.help-gnu-emacs@gnu.org>
@ 2003-04-08 18:15 ` Peter J. Acklam
2003-04-09 10:07 ` Harald Joerg
0 siblings, 1 reply; 5+ messages in thread
From: Peter J. Acklam @ 2003-04-08 18:15 UTC (permalink / raw)
"Eli Zaretskii" <eliz@elta.co.il> wrote:
> The manual does (see the section "MS-DOS Printing"): use the "net
> use" command to map the networked printer to a printer port such as
> LPT3, then set ps-printer-name to that port's name.
I use this on Windows XP and it works perfectly ("HOST" and
"Printer" must be set appropriately)
(setq-default ps-lpr-command "print")
(setq-default ps-printer-name "\\\\HOST\\Printer")
(setq-default ps-printer-name-option "/D:")
(setq-default ps-lpr-switches nil)
(setq-default ps-spool-config nil)
With Ghostscript installed one can get the usual Windows printer
dialog thing with
(setq-default ps-lpr-command "gsprint.exe")
(setq-default ps-printer-name t)
(setq-default ps-printer-name-option nil)
(setq ps-lpr-switches '("-query")) ; show printer dialog
Peter
--
I wish dialog boxes had a butten saying "Whatever". I hate being
forced to answer "Yes" or "No" to a question I have no opinion on
whatsoever. There ought to be a button matching my indifference.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: network printing on an Win2k network.
2003-04-08 18:15 ` Peter J. Acklam
@ 2003-04-09 10:07 ` Harald Joerg
0 siblings, 0 replies; 5+ messages in thread
From: Harald Joerg @ 2003-04-09 10:07 UTC (permalink / raw)
pjacklam@online.no (Peter J. Acklam) writes:
> I use this on Windows XP and it works perfectly ("HOST" and
> "Printer" must be set appropriately)
>
> (setq-default ps-lpr-command "print")
> (setq-default ps-printer-name "\\\\HOST\\Printer")
> [...]
That's what I had, too, but...
> With Ghostscript installed one can get the usual Windows printer
> dialog thing with
>
> (setq-default ps-lpr-command "gsprint.exe")
> (setq-default ps-printer-name t)
> (setq-default ps-printer-name-option nil)
> (setq ps-lpr-switches '("-query")) ; show printer dialog
I really like this one! Thanks for the hint!
This inspired me to look for a solution for emacs under cygwin. Under
cygwin, emacs appears *not* to create a file which can be fed to
gsprint (Customize claims that it does so under "MS-DOS and MS-Windows
systems"), but to pipe the buffer (or region) to whatever is defined
in ps-lpr-command. I came up with a small shell procedure gsprint.sh:
#!/usr/bin/bash
TMPFILE=`mktemp -t emacs.print.XXXXX` || exit 1
cat >$TMPFILE
/$CYGPATH_TO_gsview/gsprint.exe -query "`cygpath -w $TMPFILE`"
...and set ps-lpr-command to "gsprint.sh".
--
Cheers,
haj
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.4219.1049740066.21513.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2003-04-09 10:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07 18:25 network printing on an Win2k network Robert Correllus
2003-04-08 4:18 ` Eli Zaretskii
[not found] ` <mailman.4255.1049771971.21513.help-gnu-emacs@gnu.org>
2003-04-08 18:15 ` Peter J. Acklam
2003-04-09 10:07 ` Harald Joerg
[not found] <mailman.4219.1049740066.21513.help-gnu-emacs@gnu.org>
2003-04-08 0:26 ` Data64
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.