How to Display the Page Number of a FoxPro for MS-DOS ReportLast reviewed: November 16, 1995Article ID: Q125518 |
The information in this article applies to:
SUMMARYWhen a report prints in FoxPro for Windows, a Windows dialog box appears and displays the report file name and the page number currently printing. However, no comparable dialog box appears when a report prints in FoxPro for MS-DOS. Creating a simple user defined function (UDF) allows the display of the page number as the report prints.
MORE INFORMATIONThe modification of a report to call a UDF is a relatively straight forward process. The following steps outline the process:
WAIT WINDOW "Printing Page" +STR(_pageno) NOWAIT The WAIT WINDOW NOWAIT command displays the value of the _PAGENO system memory variable without pausing the execution of the REPORT FORMAT command. The STR() function converts the numeric _PAGENO variable to a character type. If the report executes from within a program, the WAIT WINDOWS object remains on the monitor. To clear the wait window from the screen, add the follow line to the program code immediately after the REPORT FORMAT command:
KEYBOARD '{SPACEBAR}'This simulates pressing the space bar and clears the wait window.
|
Additional reference words: FoxDos 2.60 2.60a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |