I dont know whetehr this is the right place to post this problem, but it
does have something to do with drivers so…
well, I am trying to add some functionality to the bitmap rendering plugin
of the DDK samples.
As of now this sample just dumps the bitmap of the page rendered to a file
on the disk. I also want it to do additionally (upon user rwquest) fire a
print of the same to the default printer.
Well, the problem arises when I try doing it.
the StretchDIBits function i am using to put the bitmap on the printer DC
returns 0 and also get last error is 0, but the corresponding print is a
blank page!!! I cannot understand why this is happening.
I wrote the printign code in a DLL the exported function takes a fle name
and prints it. It worls fine for small BMP files, and the return code for
StretchDIBits is correct.
But bitmap.dll dumps a 7.5 Megs bmp for a single page, and this
StretchDIBits is not able to render.
any clues how to solve this>
–
- amitr0