P
Pedro Silva
Hi,
I am developing an Visio 2003 add-in in C# an I have a little problem
raising events.
My Delelopment Environment is
Windows server 2003 with the latest patches
VS2003
..NET FW 1.1
Visio Prof 2003 SP2
Visio 2003 SDK
I start developing my add-in based on a sample solution named
FlowChartSample.CSharp provided by Visio 2003 SDK.
On the following example I am tryin to catch the "Shape Added" event on
two different ways:
try
{
// public const short ShapeAdded = (short) -32704;
pageShapeIsOn.Application.EventList.AddAdvise(Utilities.ShapeAdded,new
EventSink(),string.Empty,string.Empty);
// Another way to raise the shape added Event
pageShapeIsOn.ShapeAdded += new
EPage_ShapeAddedEventHandler(shapeAddedToPageEventHandler);
}
catch (Exception err)
{
Utilities.WriteError(err);
}
Both ways of raising the event work well when I debug the solution
(Visual Studio starts the Visio 2003).
But when I install a setup (provided in the same
FlowChartSample.CSharp) in another machine the previous code runs well
but the events are never catched by its events handlers and there are
no exceptions raised.
The machine where I install the setup has the follwing environment:
windows server 2003 with the latest patches
..NET FW 1.1
Visio Prof 2003 SP2
Can somebody help me?
Thank you,
Pedro Silva
Portugal
I am developing an Visio 2003 add-in in C# an I have a little problem
raising events.
My Delelopment Environment is
Windows server 2003 with the latest patches
VS2003
..NET FW 1.1
Visio Prof 2003 SP2
Visio 2003 SDK
I start developing my add-in based on a sample solution named
FlowChartSample.CSharp provided by Visio 2003 SDK.
On the following example I am tryin to catch the "Shape Added" event on
two different ways:
try
{
// public const short ShapeAdded = (short) -32704;
pageShapeIsOn.Application.EventList.AddAdvise(Utilities.ShapeAdded,new
EventSink(),string.Empty,string.Empty);
// Another way to raise the shape added Event
pageShapeIsOn.ShapeAdded += new
EPage_ShapeAddedEventHandler(shapeAddedToPageEventHandler);
}
catch (Exception err)
{
Utilities.WriteError(err);
}
Both ways of raising the event work well when I debug the solution
(Visual Studio starts the Visio 2003).
But when I install a setup (provided in the same
FlowChartSample.CSharp) in another machine the previous code runs well
but the events are never catched by its events handlers and there are
no exceptions raised.
The machine where I install the setup has the follwing environment:
windows server 2003 with the latest patches
..NET FW 1.1
Visio Prof 2003 SP2
Can somebody help me?
Thank you,
Pedro Silva
Portugal