Discussion:
Application Path
(too old to reply)
edamron
2010-03-22 23:13:34 UTC
Permalink
I'm trying to get the path to my Word 2007 ribbon addin's application
folder which is located in the "C:\Program Files\MyDepartment
\AddinName" folder but everything I try returns the path to the Word
2007 program.

I want to place an XML configuration file there.

Thanks.
Tony Jollans
2010-03-23 12:22:28 UTC
Permalink
Where are you starting from? How did you tell Word that your AddIn was
there?
--
Enjoy,
Tony

www.WordArticles.com
Post by edamron
I'm trying to get the path to my Word 2007 ribbon addin's application
folder which is located in the "C:\Program Files\MyDepartment
\AddinName" folder but everything I try returns the path to the Word
2007 program.
I want to place an XML configuration file there.
Thanks.
edamron
2010-03-23 15:36:34 UTC
Permalink
I'm using VSTO, Office 2007 and Visual Studio 2005. So, I created a
VB.NET Word Add-in project.




On Mar 23, 5:22 am, "Tony Jollans" <My forename at my surname dot com>
Post by Tony Jollans
Where are you starting from? How did you tell Word that your AddIn was
there?
--
Enjoy,
Tony
 www.WordArticles.com
Post by edamron
I'm trying to get the path to my Word 2007 ribbon addin's application
folder which is located in the "C:\Program Files\MyDepartment
\AddinName" folder but everything I try returns the path to the Word
2007 program.
I want to place an XML configuration file there.
Thanks.- Hide quoted text -
- Show quoted text -
Tony Jollans
2010-03-23 16:42:09 UTC
Permalink
AFAIK, you can't extract this information directly from Word. The
Application.COMAddIns Collection will give you the GUID which you can use to
check the registry.
--
Enjoy,
Tony

www.WordArticles.com

"edamron" <***@spamcop.net> wrote in message news:d4e2eb79-bda7-4063-9e84-***@k5g2000pra.googlegroups.com...
I'm using VSTO, Office 2007 and Visual Studio 2005. So, I created a
VB.NET Word Add-in project.




On Mar 23, 5:22 am, "Tony Jollans" <My forename at my surname dot com>
Post by Tony Jollans
Where are you starting from? How did you tell Word that your AddIn was
there?
--
Enjoy,
Tony
www.WordArticles.com
Post by edamron
I'm trying to get the path to my Word 2007 ribbon addin's application
folder which is located in the "C:\Program Files\MyDepartment
\AddinName" folder but everything I try returns the path to the Word
2007 program.
I want to place an XML configuration file there.
Thanks.- Hide quoted text -
- Show quoted text -
edamron
2010-03-23 17:31:50 UTC
Permalink
I think I found the answer. I can get this information like this:

Dim xAssemblyPath As String =
System.Reflection.Assembly.GetExecutingAssembly().CodeBase

Using reflection. Thanks.

On Mar 23, 9:42 am, "Tony Jollans" <My forename at my surname dot com>
Post by Tony Jollans
AFAIK, you can't extract this information directly from Word. The
Application.COMAddIns Collection will give you the GUID which you can use to
check the registry.
--
Enjoy,
Tony
 www.WordArticles.com
I'm using VSTO, Office 2007 and Visual Studio 2005.  So, I created a
VB.NET Word Add-in project.
On Mar 23, 5:22 am, "Tony Jollans" <My forename at my surname dot com>
Post by Tony Jollans
Where are you starting from? How did you tell Word that your AddIn was
there?
--
Enjoy,
Tony
www.WordArticles.com
Post by edamron
I'm trying to get the path to my Word 2007 ribbon addin's application
folder which is located in the "C:\Program Files\MyDepartment
\AddinName" folder but everything I try returns the path to the Word
2007 program.
I want to place an XML configuration file there.
Thanks.- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Continue reading on narkive:
Loading...