Knowledge Base

Printing a report from the Preview window causes a nesting error

Article ID: 192081

Article Last Modified on 2/11/2005


APPLIES TO


This article was previously published under Q192081

SYMPTOMS

Using the Printer button on the Visual FoxPro Standard toolbar while a report is in Preview mode causes the following error to occur:
Report contains a nesting error.

RESOLUTION

  • Select the Printer icon on the Print Preview toolbar instead of the Printer icon on the Visual FoxPro Standard toolbar.

    -or-

  • Add a NOWAIT clause to the end of the REPORT...PREVIEW command.

STATUS

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a quick report with a table and save the report as MyRpt.
  2. Run the following code in Command window:
          USE <tablename>
          REPORT FORM myRpt PREVIEW
    							
  3. When the Report Preview window opens, click the Printer button on the Visual FoxPro Standard toolbar, not the printer button on the Print Preview toolbar, to print the report and you see the following error message appear:
    Report contains a nesting error.
If a report is being edited using the Report Designer, then the error message does not occur when that report is printed, as outlined in this article.

Additional query words: kbVFp500a kbVFp500 kbVFp600 kbPrinting kbReportWriter

Keywords: kbprb kbpending KB192081