Article View: comp.windows.ms.programmer
Article #2729Problem printing a bitmap to a PostScript printer
From: John R. Burgoyne
Date: Sat, 18 May 1991 18:37
Date: Sat, 18 May 1991 18:37
27 lines
1409 bytes
1409 bytes
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
Technical Details
Message-ID:
<1991May18.183744.10611@eng.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!midway!mimsy!mojo!burgoyneShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!midway!mimsy!mojo!burgoyne From: burgoyne@eng.umd.edu (John R. Burgoyne) Newsgroups: comp.windows.ms.programmer Subject: Problem printing a bitmap to a PostScript printer Message-ID: <1991May18.183744.10611@eng.umd.edu> Date: 18 May 91 18:37:44 GMT Sender: news@eng.umd.edu (C-News) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 27