PRB: OLE Error when Inserting OLE Object in VFP for MacintoshID: Q163025 3.00b MACINTOSH kbole kbprb The information in this article applies to:
SYMPTOMSWhen inserting an OLE object into a general field, adding an insertable OLE object in a container control on a form, or assigning an object name to the DocumentFile property of an OLE container control in program code, the following error message may appear:
CAUSEThe object inserted into the general field, or added as an insertable object in an OLE container on a form, or assigned to the DocumentFile property, has File and Creator types that are not associated with an application on the Macintosh.
RESOLUTIONThere are several workarounds to this error:
STATUSThis behavior is by design.
MORE INFORMATIONOn the Macintosh, all files are associated to an application by either the File or Creator type. A file's Creator and Type attributes identify the parent application of a file and its specific kind. The Type attribute is used by other applications in order to determine whether a file is a valid document to load. Whereas in Windows, files are generally associated to applications by their file extension.
Steps to Reproduce BehaviorThis error message can be produced in the following three methods. Method 1: Attempt to assign a file to the DocumentFile property in code when creating an OLE object using the CREATEOBJECT() function. NOTE: By default, the "Picts folder" and the graphics do not exist. Visual FoxPro ships with sample graphics files that are contained in a self- extracting archive (SEA) file located in the "Microsoft Visual FoxPro:Samples:Graphics" folder. To follow the steps below, double-click the Picts.sea to extract the PICT files. Store them in the default folder specified "Picts Folder." For more information of these SEA files, read the Graphics Readme in the above folder.
Method 2:
Attempt to insert an OLE object into an OLE container on a form: 1. Create a new form. 2. From the Form Controls toolbar, select the OLE Container Control button 3. In the Object Type dialog box, choose Microsoft Imager 2.0 Picture. Then
4. Then select Add.PICT from the following folder:
Method 3:
Directly insert the OLE object into the general field of the table. 1. Create a table with a general field. 2. Browse the table and double-click on the general field to open the 3. Choose the Insert Object command on the Edit menu.
4. In the Object Type dialog box, choose Microsoft Imager 2.0 Picture. Then 5. Then select Add.PICT from the following folder:
The task in Method 3 can also be accomplished by using the APPEND GENERAL
command. For more information on using the APPEND GENERAL command with OLE
objects, please see the following articles in the Microsoft Knowledge Base:
NOTE: If error messages are received regarding problems with OLE
functionality, please refer to the following articles in the Microsoft
Knowledge Base:
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Dean Christopher, Microsoft Corporation
KBCategory: kbole kbprb KBSubcategory: FxinteropOle vfoxmac Additional reference words: 3.00b
|
Last Reviewed: February 2, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |