From: jrc.src on
HI all,

I am new to print processor,

from genprint source from DDK, i am trying to get EMF data from
PrintDocumentOnPrintProcessor() using pData and pDocumentname
parameter,?
In PrintEmf(), i get handle to spool file. and i m using that. ? Please
point me to correct direction.

What i want to do is to get EMF data and then convert it to bmp file to
be stored in specific loacation. My understanding is "The Windows
Default EMF processor renders the image to the printers DC. If we
simply reset it to render onto our own DC, we get our bitmap"


Thanks in Advance.

From: Christoph Lindemann on
If you want to print to a "bitmap file", I strongly suggest that you
implement this with a printer driver!

If you realy must get the EMF data, you can get help on the following pages.
But mind you, that this is not officially supported, and your applications
could break in the future. Also note that the print system changes with
Windows Vista.
http://undocprint.printassociates.com/winspool/spool_files

In the print processor you can not use the parameters to access the actual
spool file, instead use OpenPrinter to read from it
http://undocprint.printassociates.com/winspool/spool_files#reading_job_data

--
Christoph Lindemann
Undocumented Printing
http://undocprint.printassociates.com/


<jrc.src(a)gmail.com> wrote in message
news:1156315921.482541.209430(a)h48g2000cwc.googlegroups.com...
> HI all,
>
> I am new to print processor,
>
> from genprint source from DDK, i am trying to get EMF data from
> PrintDocumentOnPrintProcessor() using pData and pDocumentname
> parameter,?
> In PrintEmf(), i get handle to spool file. and i m using that. ? Please
> point me to correct direction.
>
> What i want to do is to get EMF data and then convert it to bmp file to
> be stored in specific loacation. My understanding is "The Windows
> Default EMF processor renders the image to the printers DC. If we
> simply reset it to render onto our own DC, we get our bitmap"
>
>
> Thanks in Advance.
>


From: Christoph Lindemann on
If you want to print to a "bitmap file", I strongly suggest that you
implement this with a printer driver!

If you realy must get the EMF data, you can get help on the following pages.
But mind you, that this is not officially supported, and your applications
could break in the future. Also note that the print system changes with
Windows Vista.
http://undocprint.printassociates.com/winspool/spool_files

In the print processor you can not use the parameters to access the actual
spool file, instead use OpenPrinter to read from it
http://undocprint.printassociates.com/winspool/spool_files#reading_job_data

--
Christoph Lindemann
Undocumented Printing
http://undocprint.printassociates.com/


<jrc.src(a)gmail.com> wrote in message
news:1156315921.482541.209430(a)h48g2000cwc.googlegroups.com...
> HI all,
>
> I am new to print processor,
>
> from genprint source from DDK, i am trying to get EMF data from
> PrintDocumentOnPrintProcessor() using pData and pDocumentname
> parameter,?
> In PrintEmf(), i get handle to spool file. and i m using that. ? Please
> point me to correct direction.
>
> What i want to do is to get EMF data and then convert it to bmp file to
> be stored in specific loacation. My understanding is "The Windows
> Default EMF processor renders the image to the printers DC. If we
> simply reset it to render onto our own DC, we get our bitmap"
>
>
> Thanks in Advance.
>


From: jrc.src on
Hi,

Many Thanks you.


> If you want to print to a "bitmap file", I strongly suggest that you
> implement this with a printer driver!

where can i start printer driver, is there simple (doing nothig) source
available in DDK to start with. is there any other hint for it? or
formal steps to achive that in printer driver?

> In the print processor you can not use the parameters to access the actual
> spool file, instead use OpenPrinter to read from it
> http://undocprint.printassociates.com/winspool/spool_files#reading_job_data
>
In this case, From where in processor i can call openprinter? as i
understand OpenPrinter with its name and jobid, followed by ReadPrinter
......i can read job data in SPL format, correct? Please eloborate
little more.

> If you realy must get the EMF data, you can get help on the following pages.
> But mind you, that this is not officially supported, and your applications
> could break in the future. Also note that the print system changes with
> Windows Vista.
> http://undocprint.printassociates.com/winspool/spool_files

If somehow ii go for this, i m still not aware from then how will i get
output in bmp then?
using gdi api's ? any hints for this?

Once again many thanks.

jrc




Christoph Lindemann wrote:
> If you want to print to a "bitmap file", I strongly suggest that you
> implement this with a printer driver!
>
> If you realy must get the EMF data, you can get help on the following pages.
> But mind you, that this is not officially supported, and your applications
> could break in the future. Also note that the print system changes with
> Windows Vista.
> http://undocprint.printassociates.com/winspool/spool_files
>
> In the print processor you can not use the parameters to access the actual
> spool file, instead use OpenPrinter to read from it
> http://undocprint.printassociates.com/winspool/spool_files#reading_job_data
>
> --
> Christoph Lindemann
> Undocumented Printing
> http://undocprint.printassociates.com/
>
>
> <jrc.src(a)gmail.com> wrote in message
> news:1156315921.482541.209430(a)h48g2000cwc.googlegroups.com...
> > HI all,
> >
> > I am new to print processor,
> >
> > from genprint source from DDK, i am trying to get EMF data from
> > PrintDocumentOnPrintProcessor() using pData and pDocumentname
> > parameter,?
> > In PrintEmf(), i get handle to spool file. and i m using that. ? Please
> > point me to correct direction.
> >
> > What i want to do is to get EMF data and then convert it to bmp file to
> > be stored in specific loacation. My understanding is "The Windows
> > Default EMF processor renders the image to the printers DC. If we
> > simply reset it to render onto our own DC, we get our bitmap"
> >
> >
> > Thanks in Advance.
> >

From: Igoogle on
I think you can extract the EMF from the SPL file . it is easy to do.



jrc.src(a)gmail.com wrote:
> HI all,
>
> I am new to print processor,
>
> from genprint source from DDK, i am trying to get EMF data from
> PrintDocumentOnPrintProcessor() using pData and pDocumentname
> parameter,?
> In PrintEmf(), i get handle to spool file. and i m using that. ? Please
> point me to correct direction.
>
> What i want to do is to get EMF data and then convert it to bmp file to
> be stored in specific loacation. My understanding is "The Windows
> Default EMF processor renders the image to the printers DC. If we
> simply reset it to render onto our own DC, we get our bitmap"
>
>
> Thanks in Advance.