unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Arash Esbati <arash@gnu.org>
Cc: f.j.wright@qmul.ac.uk, larsi@gnus.org, 3332@debbugs.gnu.org,
	4275@debbugs.gnu.org
Subject: bug#3332: bug#4275: 23.1; Printing
Date: Mon, 31 Jan 2022 21:19:50 +0200	[thread overview]
Message-ID: <838ruv90h5.fsf@gnu.org> (raw)
In-Reply-To: <86r18nzqd2.fsf@gnu.org> (message from Arash Esbati on Mon, 31 Jan 2022 19:56:09 +0100)

> From: Arash Esbati <arash@gnu.org>
> Date: Mon, 31 Jan 2022 19:56:09 +0100
> Cc: Francis Wright <f.j.wright@qmul.ac.uk>, 3332@debbugs.gnu.org,
>  4275@debbugs.gnu.org
> 
> Lars Ingebrigtsen <larsi@gnus.org> writes:
> 
> > "Francis Wright" <f.j.wright@qmul.ac.uk> writes:
> >
> >> direct-print-region-helper: Opening output file: permission denied,
> >> c:/DOT4_001
> >>
> >> My printer is an hp LaserJet 1010 connected via USB and the printer
> >> driver properties show that it is connect to the port DOT4_001. I
> >> think the problem is that "c:/" has been prepended to the port name.
> >>
> >> I see that the same thing happens in Emacs 22.3. (I don't print from
> >> Emacs very often!)
> >
> > (I'm going through old bug reports that unfortunately weren't resolved
> > at the time.)
> >
> > Do you still see this problem in recent versions of Emacs/Windows?
> 
> I see this problem: I did 'M-x view-hello-file RET' and from the menu
> bar, I did 'File->Print->Print buffer', said YES when asked to use the
> default printer, and this is the backtrace:
> 
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (permission-denied "Opening output file" "Permission denied" "c:/WSD-5bc23311-7bc5-46f6-a594-1552b4df353d")
>   w32-direct-print-region-helper("WSD-5bc23311-7bc5-46f6-a594-1552b4df353d" 1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil ("(page headers are not supported)"))
>   w32-direct-print-region-function(1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil "(page headers are not supported)")
>   apply(w32-direct-print-region-function 1 #<marker at 5393 in  *spool temp*> "" nil #<buffer  *temp*> nil "(page headers are not supported)")
>   lpr-print-region(1 #<marker at 5393 in  *spool temp*> ("(page headers are not supported)") "HELLO Emacs buffer")
> --8<---------------cut here---------------end--------------->8---
> 
> I have a HP Laserjet on network connected via WSD Port (hence the name
> WSD-5bc...).  This is Emacs 29.0.50 (3ca32105d2) on Win10.

See the node "Windows Printing" in the Emacs manual, which explains
that the default setting of the printer on MS-Windows isn't guaranteed
to work, and provides a few alternative suggestions for setting up the
printer.

I don't think we can do anything with these problems beyond describing
the various tricks of the trade.





  reply	other threads:[~2022-01-31 19:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <001301c9d866$3827b540$a8771fc0$@j.wright@qmul.ac.uk>
2009-05-20  0:09 ` bug#3332: 23.0.93; Printing on MS Windows Jason Rumney
2009-05-20 17:12   ` Francis Wright
2022-01-31 17:14 ` bug#3332: bug#4275: 23.1; Printing Lars Ingebrigtsen
2022-01-31 18:56   ` Arash Esbati
2022-01-31 19:19     ` Eli Zaretskii [this message]
2022-01-31 19:40       ` Arash Esbati
2022-01-31 19:50         ` Eli Zaretskii
2022-02-02 16:50       ` bug#4275: " Lars Ingebrigtsen
2022-02-02 17:07         ` Eli Zaretskii
2022-02-01 12:41     ` Francis Wright

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838ruv90h5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=3332@debbugs.gnu.org \
    --cc=4275@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=f.j.wright@qmul.ac.uk \
    --cc=larsi@gnus.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).