How to Left-Justify the Page Number in a Report

Last reviewed: June 27, 1995
Article ID: Q108091
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

To left-justify the _PAGENO field in the FoxPro for MS-DOS or FoxPro for Windows Report Writer, use the following method:

  1. Double-click the _PAGENO field in your report.

  2. In the Expression Builder, delete _PAGENO and type the following expression:

          PADR(ALLTRIM(STR(_pageno)),10," ")
    

To left-justify the _PAGENO field in the FoxPro for Windows Report Writer only, use the following method:

  1. Select the field.

  2. From the Object menu, choose Text Alignment.

  3. Choose Left.

NOTE: The number 10 in the above expression is an estimate based upon the size of the _PAGENO field. 10 works for the default size assigned to _PAGENO by the Quick Report option. You may have to adjust this number based upon the actual size of the _PAGENO field.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b RWriter
KBCategory: kbprg
KBSubcategory: FxtoolRwriter


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.