Microsoft KB Archive/117853

{| = PRB: Cannot Append Visio 2.0 File into FoxPro General Field =
 * width="100%"|

ID: Q117853

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS
In FoxPro for Windows, using the APPEND GENERAL command to bring a Visio 2.0 file into a general field does not work correctly. Also, attempting to insert a Visio 2.0 object by choosing Insert Object from the Edit menu does work correctly.

RESOLUTION
To place a Visio 2.0 file in the general field, use one of the following methods:

Method 1: Using an Existing Visio Drawing
1. Create the drawing in Visio 2.0.

2. From the Edit menu, choose Select All.

3. From the Edit menu, choose Copy.

4. Switch to FoxPro and modify the general field.

5. From the Edit menu, choose Paste.

-or-

Method 2: Creating and Using a New Visio Drawing
1. In FoxPro for Windows, choose Insert Object from the Edit menu.

2. From the Object Type list box, select VISIO 2.0 Drawing and choose OK.

STATUS
Microsoft is researching this problem and will post new information here as it becomes available.

Steps to Reproduce the Problem
1. Issue the following commands from the Command window:

CREATE TABLE visio (data_fld G)     APPEND BLANK MODIFY GENERAL data_fld 2. From the Edit menu, choose Insert Object. 3. Select "VISIO 2.0 Drawing" and select File from the dialog box.

4. Select a Visio 2.0 file and choose OK.

Instead of the file appearing in the general field, control will switch to Program Manager. Upon switching back to FoxPro, the general field will still be opened and will contain a blank Visio 2.0 drawing in it.

Visio 2.0 is an OLE 2.0 application.

NOTE: A Visio 2.0 document can be successfully inserted in a Word 6.0 document. Likewise, a Word 6.0 document can also be inserted properly in a FoxPro general field.

Visio is manufactured by a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.

Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 KBCategory: kb3rdparty kbprb KBSubcategory: FxinteropOle
 * }