Re: Controling printers at a detailed level
- From: "Alexander Gräf" <Graef@xxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 12:16:58 +0200
"Dennis" <junk@xxxxxxxxxx> schrieb im Newsbeitrag
news:%23kU6m6YkFHA.1048@xxxxxxxxxxxxxxxxxxxxxxx
> This may be the wrong forum for this question. If there is a better,
> please
> advise me.
Which is the right depends which technology you use to write printing code.
> Let me say that I've been a Windows C++ Win32 programmer for many years
> but
> I've never had to wander into the world of printers before.
If you've been a Win32 programmer for years, you should know where to start:
Platform SDK
> I suspect that the modern interface to printers has been abstracted so
> that
> all the vendor specific stuff has gone away. If that's true, then
> somewhere
> out there are a group of APIs that will allow me to do what I want. I've
> scanned the MSDN library to see what I could find but thus far I've come
> up
> with a blank. Can someone give me a gentle push in the right direction?
You have many options. Most vendor specific things have gone away, besides
the distinction between PS and PCL drivers. In essence, windows gives you
and hDC, and then you can draw on it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_62ia.asp?frame=true
You probably wont do this directly with WinAPI, but use one of the higher
level abstractions, which can be found int:
WTL (CPrintJob)
MFC
..NET
Take a look here:
http://www.codeproject.com/wtl/uoth.asp
http://www.codeproject.com/printing/printingmadeeasy.asp
http://www.ondotnet.com/pub/a/dotnet/2002/06/24/printing.html
There are probably more classes, but that should be enough for most C/C++/C#
development.
Regards, Alex
.
- References:
- Controling printers at a detailed level
- From: Dennis
- Controling printers at a detailed level
- Prev by Date: Controling printers at a detailed level
- Next by Date: Re: Looping Streamed Audio Using WaveOut
- Previous by thread: Controling printers at a detailed level
- Next by thread: Re: Controling printers at a detailed level
- Index(es):
Relevant Pages
|