PRB: Olegraph.scx Sample Fails if Graph 8 Is InstalledLast reviewed: February 20, 1997Article ID: Q163799 |
The information in this article applies to:
SYMPTOMSIf you run the Visual FoxPro Olegraph.scx sample (samples\solution\ole) after installing one of the Office 97 products, you receive the following error:
"OLE error code 0x8002005 type mismatch" CAUSEThis error occurs because Visual FoxPro includes Microsoft Graph Version 5 with the product but Office 97 ships with Microsoft Graph Version 8. The Olegraph.scx sample in Visual FoxPro uses a graph function called AutoFormat. Graph 8 has no such function. Graph 8 uses a property called ChartType for setting or reading the type of graph you are using.
RESOLUTIONTo set the type of graph in Graph 8, use the ChartType property. To fix the sample so it will run with Graph 8, you need to perform the following steps:
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorIn the Command Window, enter the following command:
* Assumes that VFP is your default directory DO FORM HOME()+"samples\solution\ole\Olegraph.scx" REFERENCESMicrosoft Graph Visual Basic Help File (vbagrp8.hlp) (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Brian Combs, Microsoft Corporation
|
KBCategory: kbsetup kbinterop kbole kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |