G
Guest
I have developed a com interop dll to be used in excel. In the dll I need to
read a file which exists in the same path as that of dll.How do I find the
path of the dll. When I use GetExecutingAssembly (as shown below) it gets the
path of Excel and not that of the dll. Any help is appreciated. Thanks.
********code************
path = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
read a file which exists in the same path as that of dll.How do I find the
path of the dll. When I use GetExecutingAssembly (as shown below) it gets the
path of Excel and not that of the dll. Any help is appreciated. Thanks.
********code************
path = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)