Microsoft KB Archive/163246

= BUG: Visual FoxPro Loses Graphing When Office 97 Removed =

Article ID: 163246

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q163246



SYMPTOMS
The following symptoms may occur:

 When modifying or building a query with a graph as the destination, you see the following message:

MSGraph does not appear to be installed properly. Graph could not be made.

 You need to place a graph as an insertable object in an OLE Container Control on a form, but the Insert Object dialog box does not show Microsoft Graph as an insertable object. When building a query, the graph icon in the Query Destination dialog box cannot be selected.



CAUSE
The Office 97 setup process replaces Graph5 with Graph8 as the association for .gra extension files.

Removing Office 97 entirely leaves the registry without any reference to a graphing tool associated with the .gra extension. Visual FoxPro cannot find a graphing tool to use in graphing the results of a query.

Using the "Add/Remove software" functions of Windows 95 or WindowsNT to remove only Graph8 does not remove those files nor the registry entries.

Removing Office 97 removes all references to the graph files previously installed.



RESOLUTION
One alternative for resolving this is to re-install Office 97. If the system should not have Office 97, then remove all portions of Office 97 except Graph and Graph Help.

Another alternative is to install or reinstall Office 95. That will reinstall and re-register MS Graph5.

Re-installing MS Graph5 from the Visual FoxPro distribution disk does not solve the problem.



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
Existing graphs stored in general fields display correctly when the table is opened and browsed and the general field is double-clicked. The presentation data stored as part of the "Binary Large Object Bitmap" contents of the general field contains the information to render the embedded OLE document--that is, the graph.

Double-clicking that displayed image results in the following error message:

OLE error code 0x80040154: Class is not registered.

Steps to Reproduce Behavior

 * 1) On a Windows 95 or Windows NT system, install Microsoft Office 97.
 * 2) Uninstall Office 97.
 * 3) Open Visual FoxPro, and make a new form.
 * 4) Click the OLE Container Control tool on the Forms toolbar.
 * 5) In the Insert Object dialog box, examine the list of insertable objects. MS Graph does not appear as a choice.

Keywords: kbbug KB163246

-

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

© Microsoft Corporation. All rights reserved.