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 (299074)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Configure the computer that is running Microsoft Windows to use the High Contrast Black color scheme. To do this, follow these steps:
    1. Right-click the Windows desktop and click Properties.
    2. In the Display Properties dialog box, click the Appearance tab.
    3. Select High Contrast Black and click OK.
  2. 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
    					
  3. 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.
  4. 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.
  5. 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.
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.

Modification Type:MajorLast Reviewed:2/18/2005
Keywords:kbBug kbCodeSnippet kbfix kbprint kbReportWriter kbvfp700fix KB299074