Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visio in VFP
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Visio in VFP
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974929
Message ID:
00974929
Views:
53
Hmmm . . . where to put this question? This is not automation, per se, but here goes . . .I'm placing the Visio ActiveX control on a VFP form. I'm able to click the drawing and get information about the object. For instance, the following code is a simple way to get at the object and display information about it:
*** SelectionChanged Method
*** ActiveX Control Event ***
LPARAMETERS toWindow

for each oItem in toWindow.Selection
   wait window alltrim(oItem.Name) + " Data1 = " +;
      alltrim(oItem.Data1) timeout 1
endfor
However, if I put on object in another object (for instance, using the Electronics template I can place a "board" on the drawing and then place other objects in that), I can select that inner object, but the code above will not work. I'm still figuring out the capabilities of the control and the object model for Visio. There's probably another way to get at the contained object. Anyone know what that might be?

Thanks,

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Reply
Map
View

Click here to load this message in the networking platform