* Printing on M$
@ 2008-01-21 6:14 dhruva
2008-01-21 9:03 ` dhruva
2008-01-21 9:24 ` Jason Rumney
0 siblings, 2 replies; 5+ messages in thread
From: dhruva @ 2008-01-21 6:14 UTC (permalink / raw)
To: Emacs Devel, Lennart Borgman (gmail)
Hello,
I am starting a new thread to discuss the printing issues on M$ systems.
I am working on writing a standalone program to better understand the
printing under M$. I have a fundamental question:
1. For the first attempt, it is enough to have a M$ application like
behavior for Emacs on M$? On selecting "Print", display the dialog box
to select the printer and set all the printer specifics and print the
buffer. This is the normal way it is done in most applications on M$.
I am exploring the GDI interface and seems quite structured (compared
to other things on M$)
-dky
--
Contents reflect my personal views only!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printing on M$
2008-01-21 6:14 Printing on M$ dhruva
@ 2008-01-21 9:03 ` dhruva
2008-01-21 9:29 ` Jason Rumney
2008-01-21 9:24 ` Jason Rumney
1 sibling, 1 reply; 5+ messages in thread
From: dhruva @ 2008-01-21 9:03 UTC (permalink / raw)
To: Emacs Devel, Lennart Borgman (gmail)
Hi,
On Jan 21, 2008 11:44 AM, dhruva <dhruvakm@gmail.com> wrote:
> I am exploring the GDI interface and seems quite structured (compared
> to other things on M$)
Do I concentrate on getting RAW text printing using GDI interfaces? I
have written a small tool from which I can get the printer selection
dialog box (with default printer selected) and print the file I have
given from the command prompt. I am in the process of adding page
break support and that should make a working command/code.
However, I am not able to print images or other file types by using
different printing processors. I will explore it later once I get page
breaks in place.
-dky
--
Contents reflect my personal views only!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printing on M$
2008-01-21 9:03 ` dhruva
@ 2008-01-21 9:29 ` Jason Rumney
0 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2008-01-21 9:29 UTC (permalink / raw)
To: dhruva; +Cc: Lennart Borgman (gmail), Emacs Devel
dhruva wrote:
> Hi,
>
> On Jan 21, 2008 11:44 AM, dhruva <dhruvakm@gmail.com> wrote:
>
>> I am exploring the GDI interface and seems quite structured (compared
>> to other things on M$)
>>
>
> Do I concentrate on getting RAW text printing using GDI interfaces? I
> have written a small tool from which I can get the printer selection
> dialog box (with default printer selected) and print the file I have
> given from the command prompt. I am in the process of adding page
> break support and that should make a working command/code.
>
That could be a useful interim solution as a substitute for the "print"
command, which is not available on some versions of Windows. If it could
send postscript files directly to printers that can support them, and
reject them with a warning dialog otherwise then we could use it for
ps-print too.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printing on M$
2008-01-21 6:14 Printing on M$ dhruva
2008-01-21 9:03 ` dhruva
@ 2008-01-21 9:24 ` Jason Rumney
2008-01-21 20:12 ` Eli Zaretskii
1 sibling, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2008-01-21 9:24 UTC (permalink / raw)
To: dhruva; +Cc: Lennart Borgman (gmail), Emacs Devel
dhruva wrote:
> 1. For the first attempt, it is enough to have a M$ application like
> behavior for Emacs on M$? On selecting "Print", display the dialog box
> to select the printer and set all the printer specifics and print the
> buffer. This is the normal way it is done in most applications on M$.
>
The objective should be to print natively on all platforms. GTK has a
similar method of printing to Windows as I understand it, so if you want
to work on support for Windows, it is probably best to read the GTK docs
as well, and try to write code that can be shared between the
implementations.
Normally on Windows, printing code is shared with redisplay, but the
optimisations in Emacs's redisplay code may make this difficult.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Printing on M$
2008-01-21 9:24 ` Jason Rumney
@ 2008-01-21 20:12 ` Eli Zaretskii
0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-01-21 20:12 UTC (permalink / raw)
To: Jason Rumney; +Cc: lennart.borgman, emacs-devel
> Date: Mon, 21 Jan 2008 09:24:47 +0000
> From: Jason Rumney <jasonr@gnu.org>
> Cc: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>,
> Emacs Devel <emacs-devel@gnu.org>
>
> dhruva wrote:
> > 1. For the first attempt, it is enough to have a M$ application like
> > behavior for Emacs on M$? On selecting "Print", display the dialog box
> > to select the printer and set all the printer specifics and print the
> > buffer. This is the normal way it is done in most applications on M$.
> >
> The objective should be to print natively on all platforms. GTK has a
> similar method of printing to Windows as I understand it, so if you want
> to work on support for Windows, it is probably best to read the GTK docs
> as well, and try to write code that can be shared between the
> implementations.
That's best if dhruva can do it. But if printing natively on all
platforms is too much of a challenge, I'd settle for a simpler
alternative: have a separate program that Emacs will invoke and pipe
text to, and have that program pop up the Windows Print menu and print
using GDI. That would be similar to what Emacs does on Posiz systems:
invokes `lpr', an external program.
> Normally on Windows, printing code is shared with redisplay, but the
> optimisations in Emacs's redisplay code may make this difficult.
If that is a problem, the optimizations can be disabled.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-21 20:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 6:14 Printing on M$ dhruva
2008-01-21 9:03 ` dhruva
2008-01-21 9:29 ` Jason Rumney
2008-01-21 9:24 ` Jason Rumney
2008-01-21 20:12 ` Eli Zaretskii
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.