Microsoft KB Archive/320874

= Page numbers are not incremented in a maximized Preview window in Windows XP =

Article ID: 320874

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q320874



SYMPTOMS
If you preview a report form that was created in Visual FoxPro 6.0 or 7.0, the page numbers that appear in the title bar may not be incremented when you use the navigation buttons in the report preview toolbar to move through the report. This behavior occurs on Microsoft Windows XP-based computers. This behavior occurs in the Visual FoxPro development environment and in compiled Visual FoxPro programs.



RESOLUTION
To work around this behavior, use any of the following methods:  Turn off visual themes for the Visual FoxPro program (if the behavior occurs in the development environment) or in your program file (if the behavior occurs in a distributable program file). For additional information about how to turn off visual themes, click the article number below to view the article in the Microsoft Knowledge Base:

292533 HOW TO: Use Windows Program Compatibility Mode in Windows XP

 Preview the report in a window that is not maximized. If the report preview window is not maximized, the page number is incremented properly.  Place the report preview window in a window that you define. The following sample code creates a window and previews the report full-screen in the defined window: PUBLIC ofrmPreview ofrmPreview = NEWOBJECT(&quot;PreviewForm&quot;) ** Replace &quot;Report1&quot; with the name of your report (.frx) file. REPORT FORM Report1 PREVIEW WINDOW &quot;PreviewForm&quot; NOCONSOLE RELEASE ofrmPreview DEFINE CLASS PreviewForm AS FORM HEIGHT = _SCREEN.Height WIDTH = _SCREEN.Width CAPTION = &quot;&quot; MAXBUTTON = .F.    NAME = &quot;PreviewForm&quot; ENDDEFINE 



Steps to Reproduce the Behavior
 Type the following command in a command window:

report form home(2)+&quot;tastrade\reports\listcust.frx&quot; preview

 Maximize the report.</li> On the report preview toolbar, click Next several times. The page number that appears in the title bar is not incremented.</li></ol>

Additional query words: professional home

Keywords: kbcodesnippet kbreportwriter kbprb KB320874

-

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

© Microsoft Corporation. All rights reserved.