Microsoft KB Archive/299074

= Reports that are previewed or that are printed may appear blank when the computer is set to use the Microsoft Windows High Contrast Black color scheme in Visual FoxPro for Windows 5.0 and in Visual FoxPro for Windows 6.0 =

Article ID: 299074

Article Last Modified on 2/18/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q299074



SYMPTOMS
When the computer is set to use the Microsoft Windows High Contrast Black color scheme, reports that are previewed or that are printed may appear blank. This problem occurs in Microsoft Visual FoxPro for Windows 5.0 and in Microsoft Visual FoxPro for Windows 6.0. The Windows High Contrast Black color scheme is a Windows classic style color scheme in Microsoft Windows XP.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Visual FoxPro version 7.0 for Windows.



Steps to Reproduce Behavior
 Configure the computer that is running Microsoft Windows to use the High Contrast Black color scheme. To do this, follow these steps:  Right-click the Windows desktop and click Properties. In the Display Properties dialog box, click the Appearance tab. Select High Contrast Black and click OK.   In VFP 5.0 or 6.0, paste the following code in new program. Save and run the program (the name is unimportant). *!* Q299074 FIX: Blank Previewed and Printed Reports With High Contrast Black Color Scheme LOCAL lni ERASE Q299074_REPO.FR? CREATE CURSOR Q299074 (f1 I, f2 c(50)) FOR lni = 1 TO 1 INSERT INTO Q299074 VALUES (lni, '') ENDFOR

CREATE REPORT Q299074_REPRO FROM Q299074 REPLACE ALL f2 WITH 'Report as created ' + TTOC(DATETIME) REPORT FORM Q299074_REPRO PREVIEW REPORT FORM Q299074_REPRO TO PRINTER

KEYB '{ctrl+a}' MODI REPO Q299074_REPRO

REPLACE ALL f2 WITH 'Report w/ font changes made ' + TTOC(DATETIME) REPORT FORM Q299074_REPRO PREVIEW REPORT FORM Q299074_REPRO TO PRINTER </li> A report previews. Note that the text appears as white with a black background, as expected from the scheme. On the Print Preview toolbar, click Close to print the report.</li> In the report designer that displays, all of the items on the report are selected. On the Format menu, click Font. Click OK in the Font dialog box, then press CTRL+W to close and save the report.</li> The preview again displays, but this time none of the objects are visible. On the Print Preview toolbar, click Close to print the report a second time.</li></ol>

Note that the first printing of the report (where the preview objects were visible) is blank. The second printing of the report (where the preview objects were not visible) prints correctly.

Keywords: kbbug kbfix kbprint kbcodesnippet kbreportwriter kbvfp700fix KB299074

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.