Microsoft KB Archive/140222

= You cannot use the _PBPAGE or _PEPAGE system variables to control the pages for a Report Form =

Article ID: 140222

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q140222



SYMPTOMS
The system variables _PBPAGE and _PEPAGE do not control the range of pages in the REPORT FORM command. Further, using this expression: REPORT FORM  FOR _PAGENO > 2 .AND. _PAGENO < 4 does not produce the desired range of pages. However, if you do not specify a beginning range, the correct number of pages is printed. In Visual FoxPro 8.0 and earlier, there is no way to specify a range of pages to be printed in a report. However, in Visual FoxPro 9.0, you can use a Report Listener to accomplish this task.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create and save a report using the Report Designer.  Create a program that contains the following lines: PRINTJOB _PBPAGE = 2 _PEPAGE = 4 REPORT FORM PREVIEW ENDPRINTJOB  Save and run the program. All pages of the report print.

Additional query words: VFoxWin

Keywords: KB140222

-

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

© Microsoft Corporation. All rights reserved.