W
WPfeffer
I have found a few white papers, talks, etc. on best practices for Visio
Development (the majority of which are for Visio 2003, when I'm looking for
Visio 2007) and they are all pretty much saying the same thing, use the COM
EventSink method. What I would like to see is, a comparison between the COM
EventSink way of doing things and the VSTO way of doing things. Why is the
EventSink method a better practice than the VSTO method? If I am trapping
events from Visio inside of an AddIn, why should I use COM instead of what
appears to be the more native / intuitive way of doing things in VSTO? And,
why is it next to impossible to find any documentation on doing things in C#
instead of VB? The only C# code that I've found in any quatity is in the
examples that come with the SDK, all the blogs that I've found and all of the
SDK documentation is in VB. I have yet to find any documentation on accessing
the different properties of the Visio objects in C#. (I figured it out though
rather quickly, it would just have been nice if somewhere in the
documentation it had been stated that in C# you use <object>.get_<property>()
instead of the VB way of <object>.<property>.)
I apologize if I sound like I'm ranting, I'm just getting a little
frustrated with what appears to be a lack of documentation for a language
that Microsoft was touting a couple of years back as the next big thing and
for a lack of comparitive data to back up the notion that COM AddIns are a
better way to go than VSTO add ins.
Thanks in advance for any help that can be given.
Wayne E. Pfeffer
Development (the majority of which are for Visio 2003, when I'm looking for
Visio 2007) and they are all pretty much saying the same thing, use the COM
EventSink method. What I would like to see is, a comparison between the COM
EventSink way of doing things and the VSTO way of doing things. Why is the
EventSink method a better practice than the VSTO method? If I am trapping
events from Visio inside of an AddIn, why should I use COM instead of what
appears to be the more native / intuitive way of doing things in VSTO? And,
why is it next to impossible to find any documentation on doing things in C#
instead of VB? The only C# code that I've found in any quatity is in the
examples that come with the SDK, all the blogs that I've found and all of the
SDK documentation is in VB. I have yet to find any documentation on accessing
the different properties of the Visio objects in C#. (I figured it out though
rather quickly, it would just have been nice if somewhere in the
documentation it had been stated that in C# you use <object>.get_<property>()
instead of the VB way of <object>.<property>.)
I apologize if I sound like I'm ranting, I'm just getting a little
frustrated with what appears to be a lack of documentation for a language
that Microsoft was touting a couple of years back as the next big thing and
for a lack of comparitive data to back up the notion that COM AddIns are a
better way to go than VSTO add ins.
Thanks in advance for any help that can be given.
Wayne E. Pfeffer