Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

When printing a colored Excel document with a monochrome postscript print driver, the grayscale shading may be incorrect.


View products that this article applies to.

Symptoms

Print a colored Excel document that contains a cell filled with color to a monochrome postscript print driver.  The grayscale done by the monochrome postscript driver is incorrect, making the background to appear black instead of a shade of gray. 

↑ Back to the top


Cause

Excel is sending different data to the driver based upon whether the driver is mono or color. 

↑ Back to the top


Resolution

Add this code to rendering plugins IPrintOemPS::EnablePDEV method

if(pGdiInfo->cBitsPixel==1) pGdiInfo->ulNumColors=256;

This will force Excel to send the same data for both monochrome and color printers. 

↑ Back to the top


Keywords: KB2000866

↑ Back to the top

Article Info
Article ID : 2000866
Revision : 2
Created on : 7/27/2009
Published on : 7/27/2009
Exists online : False
Views : 198