Printing a report from the Preview window causes a nesting error (192081)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

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.

Modification Type:MajorLast Reviewed:2/11/2005
Keywords:kbpending kbprb KB192081