Microsoft KB Archive/192081

= Printing a report from the Preview window causes a nesting error =

Article ID: 192081

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



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


Steps to Reproduce Behavior
 Create a quick report with a table and save the report as MyRpt.  Run the following code in Command window: USE REPORT FORM myRpt PREVIEW  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.

</li></ol>

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

-

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

© Microsoft Corporation. All rights reserved.