Getting ConnectionString from Server Explorer's UIHierarhyItem

  • Thread starter Thread starter Predrag Tomasevic
  • Start date Start date
P

Predrag Tomasevic

What I want is simply to get connectionString related to currently selected
DataConnection from ServerExplorer.

When I select item from Server Explorer => right click => Properties,
Property window displays that type of current node is IDispDataVwDataConn. I
found this interface in VS7DataProject... and then tried to use it by
pointing && casting to currently selected DataConnection (which I got as
UIHierarhyItem) but it won't work (I tried UIHierarhyItem.Object also of
course).

Any help on this subject is extremly welcome... and if I haven't presented
my question well just mail me and I'll try to explain better what I want ;)

Tnx in advance...
 
I have just the same problem you have and I'm completely lost...If I try to debug, I always can see tha myUIHierarchyItem.Object is an __COMObject and I can't find a wayto convert it to an IDispDataVwDataConn or even ask if it is aIDispDataVwDataConn or IDispDataVwNode or whatever.

Does anyone can kindly tell us how to get that?

Thanks a lot for your time and knowledge
What I want is simply to get connectionString related tocurrently selected
DataConnection from ServerExplorer.

When I select item from Server Explorer => right click =>Properties,
Property window displays that type of current node isIDispDataVwDataConn. I
found this interface in VS7DataProject... and then tried to useit by
pointing && casting to currently selected DataConnection (whichI got as
UIHierarhyItem) but it won't work (I triedUIHierarhyItem.Object also of
course).

Any help on this subject is extremly welcome... and if Ihaven't presented
my question well just mail me and I'll try to explain betterwhat I want ;)

Tnx in advance...
User submitted from AEWNET (http://www.aewnet.com/)
 
Back
Top