how to add No of Copy feature in my (WDK Sample) Bitmap Printer Driver

I am using the Bitmap driver to create the bitmap image. It is working fine but I just want to implement the number of copy feature in Bit map driver. When I am giving the number of copy like 2 or more then it is creating only a single image and this image have all the copy ( All copy add in a single image). I just want to create a separate copy of the image.

sunil111193 wrote:

I am using the Bitmap driver to create the bitmap image. It is working fine but I just want to implement the number of copy feature in Bit map driver. When I am giving the number of copy like 2 or more then it is creating only a single image and this image have all the copy ( All copy add in a single image). I just want to create a separate copy of the image.

I’m not exactly sure what you mean by “separate copy”.  Are you creating
bitmap files on disk in your printer driver?  Do you want to have one
file per page, instead of one file per job?  In that case, all you
should have to do is hook INDEX_DrvSendPage and have it close the file
and start another.

Do you want to have one file per page, instead of one file per job?
yes.

In that case, all you should have to do is hook INDEX_DrvSendPage and have it close the file and start another.
I am only using bitmap driver not complete “OEM Printer Customization Plug-in Samples”
so I wasn’t able to find INDEX_DrvSendPage there is the only INDEX_DrvEndPage.
and
If able to run SendPage() function then

have it close the file and start another

How to do this?

sunil111193 wrote:

> In that case, all you should have to do is hook INDEX_DrvSendPage and have it close the file and start another.
I am only using bitmap driver not complete “OEM Printer Customization Plug-in Samples”
so I wasn’t able to find INDEX_DrvSendPage there is the only INDEX_DrvEndPage.

Oh, of course you can.  Did you even read the comments in intrface.h
about the list of hooks?  The sample only hooks INDEX_DrvEndDoc, but
there are more than 100 driver callbacks that you can hook if you so choose.

If able to run SendPage() function then
have it close the file and start another
How to do this?

Are you relying on the standard spooler to create your files?  If so,
how do you get the files located where you need them?

In any case, the standard spooler is never going to do what you want. 
It creates one file per job.  You will have to create and write the
files on your own.