PRB: ??? Command Issued Before Running Report Is Ignored

Last reviewed: April 30, 1996
Article ID: Q113805
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, and 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, and 2.6

SYMPTOMS

Printer control codes sent directly to the printer prior to running a report created with the Report Writer are overwritten if a printer driver is in effect.

CAUSE

Although the triple question mark command (???) can be used to issue commands directly to a printer when you are hard-coding a report, the printer settings will have no effect when they are used in conjunction with a FoxPro report created with the Report Writer, which uses a printer driver. FoxPro for MS-DOS printer drivers and the Windows printer drivers issue their own commands to reset the printer before printing a report created with the Report Writer.

RESOLUTION

To work around this behavior, do one of the following:

  • Specify that no printer driver be used for the report:

        - For FoxPro for MS-DOS, issue the following command before running the
          report:
    

             SET PDSETUP TO ""
    
        - For FoxPro for Windows, select the Generic/Text Only driver, and make
          sure that PDSETUP does not appear in the REPORT FORM command.
    
       -or-
    
    
  • Modify the P_CODES database, adding a new record containing the codes you want to have issued before the report is run.

    For information about how to modify the P_CODES database, please see the following article(s) in the Microsoft Knowledge Base:

          ARTICLE-ID: Q89000
    
          TITLE     : How to Edit the FoxPro P_CODES Database
    
       -or-
    
    
  • Create a user procedure for PDDOCSTART.


Additional reference words: FoxDos FoxWin 2.60 escape xbase RWriter
KBCategory: kbprg kbprb
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: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.