DOCUMENT:Q282047 26-MAY-2001 [foxpro] TITLE :PRB: Printing Reports Causes Exception C0000005 Error PRODUCT :Microsoft FoxPro PROD/VER::3.0,3.0b,5.0,5.0a,6.0,7.0 OPER/SYS: KEYWORDS:kbReportWriter kbvfp kbvfp300 kbvfp300b kbvfp500 kbvfp500a kbvfp600 kbGrpDSFox kbDSuppo ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a, 6.0, 7.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you print a report, you may receive the following error message: Fatal Error: Exception C0000005 CAUSE ===== This problem can occur if the Tag and Tag2 fields of the report have printer code for a printer that is not currently being used. RESOLUTION ========== As a workaround to the problem, delete the contents of the Tag and Tag2 fields. The following code shows how to do this: *!* Q282047: PRB: Printing Reports Causes Exception Error C0000005 *!* Replace MyReport with the name of your report. USE MyReport.FRX BLANK FIELDS Tag, Tag2 USE REFERENCES ========== For additional information on the Tag and Tag2 fields in reports, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q257624 Clear Report TAG, TAG2, and EXPR Fields Using .pjx Hooks Q138396 HOWTO: Use the Default Windows Printer in Visual FoxPro Q136620 Benefit of Storing Printer Info in a Report Table (.FRX File) Q133163 HOWTO: Control Printer Attributes for a Report at Run Time Q191588 BUG: Create Report w/ SYS(1037) Saves Old Printer Information Additional query words: ====================================================================== Keywords : kbReportWriter kbvfp kbvfp300 kbvfp300b kbvfp500 kbvfp500a kbvfp600 kbGrpDSFox kbDSupport kbCodeSnippet kbvfp700 Technology : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP300b kbVFP500 kbVFP600 kbVFP700 kbVFP500a Version : :3.0,3.0b,5.0,5.0a,6.0,7.0 Issue type : kbprb ============================================================================= 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. Copyright Microsoft Corporation 2001.