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.
- 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.
- Select the chart on Far East 2 worksheet, and choose Copy from the Edit
menu.
- Select the Chart1 worksheet. Then choose Paste from the Edit menu to
place the chart on the Chart1 worksheet.
- 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.
- From the Edit menu, choose Copy to copy the Chart1 worksheet.
- 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
- Create a table in FoxPro for Windows, and add a general field. Add a
record to this table.
- Open Microsoft Excel version 5.0a and open the sample workbook called
CHART.XLS in the EXCEL\EXCELCBT\ directory.
- Select the chart on the Far East 2 worksheet. Then choose Copy from the
Edit menu.
- 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>."
|