Article ID: 110796 - Last Review: July 17, 2001 - Revision: 1.0

BUG: Iconic OLE Object Prints as Black Rectangle on PostScript

This article was previously published under Q110796
Expand all | Collapse all

SYMPTOMS

Calling OleDraw() or IViewObject::Draw() to print an iconic OLE object to a PostScript printer results in a black rectangle being drawn.

CAUSE

Internally, the OLE DLLs (dynamic-link libraries) are using the DrawIcon() function to draw the icon. DrawIcon() requires the target device to support the SRCINVERT ROP (raster operation) code. PostScript does not support this particular ROP code.

RESOLUTION

An application can call OleDraw() or IViewObject::Draw() using a memory DC (device context). A bitmap of the memory DC can be retrieved, which can be used with the BitBlt() function to get the correct output to the printer.

STATUS

Microsoft has confirmed this to be a problem in the OLE Libraries version 2.01.

This is not a problem in 32-bit OLE.

APPLIES TO
  • Microsoft OLE 2.01
Keywords: 
kb16bitonly KB110796
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations