burgoyne@eng.umd.edu (John R. Burgoyne) (05/19/91)
We are still having problems with printing a bitmap to a PostScript
printer from our Windows application. The bitmap in question is a
representation of the main program window which we are also displaying
to the monitor.
That is, we are just trying to be able to do a screen printout from
within our Windows app.
Printing works fine on every printer other than PostScript printers.
This is the source which accomplishes the printing:
StretchBlt(hPr,xMargin,yMargin,(int)(xScaleFactor*PasteBitmap.bmWi
dth),
(int)(yScaleFactor*PasteBitmap.bmHeight),hMemoryDC,
0,0,PasteBitmap.bmWidth,PasteBitmap.bmHeight,SRCCOPY);
Does anyone have any suggestions why this doesn't work for PostScript
printers? Any sample source code which does print a bitmap successfully
to a PostScript printer would be greatly appreciated.
We've really been banging our heads against the wall on this one.
Thanks.
Robert