BUG: GP Fault w/ Paste Link of Excel Chart into General Field

Last reviewed: June 26, 1995
Article ID: Q129013
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.6 and 2.6a

SYMPTOMS

Performing a Paste Link of a chart from a Microsoft Excel version 5.0a worksheet into a FoxPro general field causes a general protection (GP) fault.

RESOLUTION

Upgrade to Microsoft Excel version 5.0c or follow the procedure below to paste a chart sheet rather than a chart. The Excel version can be determined by selecting Help and "About Microsoft Excel..." from the Excel menu bar.

While upgrading to Excel version 5.0c allows pasting links of charts into FoxPro general fields properly, the following workaround of pasting a link from a chart sheet will work for Excel version 5.0a.

  1. Open the CHART.XLS Excel 5 sample workbook mentioned in step 2 of the "Steps to Reproduce Problem" section of this article. From the Insert menu, choose Chart. Then select As New Sheet. This creates a Chart1 worksheet.

  2. Select the chart on Far East 2 worksheet, and choose Copy from the Edit menu.

  3. Select the Chart1 worksheet. Then choose Paste from the Edit menu to place the chart on the Chart1 worksheet.

  4. Select the entire Chart1 worksheet by clicking outside the border of the chart (graph) itself. If the mouse is clicked inside the boundary of the chart, the selection dots will appear around the graph. This is the equivalent of what causes the GP fault. On the other hand, if the mouse is clicked outside the boundary of the graph, the entire Chart1' worksheet is selected, which is what you want.

  5. From the Edit menu, choose Copy to copy the Chart1 worksheet.

  6. In FoxPro, open the general field. Then choose Paste Special from the Edit menu. Select Paste Link in the dialog, and the chart will be pasted successfully.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a table in FoxPro for Windows, and add a general field. Add a record to this table.

  2. Open Microsoft Excel version 5.0a and open the sample workbook called CHART.XLS in the EXCEL\EXCELCBT\ directory.

  3. Select the chart on the Far East 2 worksheet. Then choose Copy from the Edit menu.

  4. In FoxPro, open the general field, and choose Paste Special from the Edit menu. Select Paste Link in the dialog. The result will be the message "FoxPro caused a General Protection Fault in module <unknown>."


Additional reference words: FoxWin 2.60 2.60a buglist2.60 buglist2.60a GPF
KBCategory: kbinterop kbbuglist
KBSubcategory: FxinteropExcel


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: June 26, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.