help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing from WindowXP version of emacs


From: Eli Zaretskii
Subject: Re: Printing from WindowXP version of emacs
Date: Sat, 24 Dec 2005 16:39:25 +0200

> Date: Sat, 24 Dec 2005 15:49:17 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> Another thing to try is to use the PRINT command:
> 
>   print /d:\\printserver\sharename drive:\path\filename.txt
> 
> where filename.txt is the text file to print.  Does that work for you?

And yet another is via the Windows ShellExecute API, which has an
interface in Emacs:

  (w32-shell-execute "print" "d:\\path\\to\\document.txt")

Alas, this only works for files whose shortcut menu (the one you see
when you right-click the file's name in the Explorer) includes the
"Print" option.  But at least .txt and .html files should have this,
so you could, e.g., write the output of your HTML-izer to a file and
print it with the above.  This command usually sends to the default
printer.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]