J
joel
HI
In VS .net c#, I am trying to get the path of the add-in to run the
help file there.
I tried:
public class Connect : Object, Extensibility.IDTExtensibility2
{
public static PowerPoint.Application applicationObject;
public static PowerPoint.AddIn addInObject;
public void OnConnection(object application,
Extensibility.ext_ConnectMode connectMode, object addInInst, ref
System.Array custom)
{
applicationObject = (PowerPoint.Application)application; addInObject =
(PowerPoint.AddIn)addInInst;
MessageBox.Show(addInObject.Path);
But I get the message "Specified cast is not valid", apparently
referring to the line: addInObject = (PowerPoint.AddIn)addInInst;
Any ideas what I am doing wrong? Or is there another way to get the
add-in path?
THanks, Joel
In VS .net c#, I am trying to get the path of the add-in to run the
help file there.
I tried:
public class Connect : Object, Extensibility.IDTExtensibility2
{
public static PowerPoint.Application applicationObject;
public static PowerPoint.AddIn addInObject;
public void OnConnection(object application,
Extensibility.ext_ConnectMode connectMode, object addInInst, ref
System.Array custom)
{
applicationObject = (PowerPoint.Application)application; addInObject =
(PowerPoint.AddIn)addInInst;
MessageBox.Show(addInObject.Path);
But I get the message "Specified cast is not valid", apparently
referring to the line: addInObject = (PowerPoint.AddIn)addInInst;
Any ideas what I am doing wrong? Or is there another way to get the
add-in path?
THanks, Joel