N
NanoWizard
Does anyone know what would be the best way to go about creating a
Word Addin in .NET that could work on multiple versions of Word? From
my understanding, the interops for the different versions of Word
aren't guaranteed to work with each other. I thought about creating
an assembly that would have a bunch of a relevent interfaces needed in
this project and then based on the Word version detected dynamically
load the assembly such as
Assembly asm = Assembly.LoadFile( strFilePath );
object obj = asm.CreateInstance(
"Microsoft.Office.Interop.Word.ApplicationClass" );
IMyWordApplication WordApp = obj as IMyWordApplication;
If there is a better way to do it then to write a bunch of duplicate
Class Libraries specifically coded to a particular version of
Word/Office and then load those specific assemblies from the core
add-in, I would like to know.
Thanks in advance,
Rob
Word Addin in .NET that could work on multiple versions of Word? From
my understanding, the interops for the different versions of Word
aren't guaranteed to work with each other. I thought about creating
an assembly that would have a bunch of a relevent interfaces needed in
this project and then based on the Word version detected dynamically
load the assembly such as
Assembly asm = Assembly.LoadFile( strFilePath );
object obj = asm.CreateInstance(
"Microsoft.Office.Interop.Word.ApplicationClass" );
IMyWordApplication WordApp = obj as IMyWordApplication;
If there is a better way to do it then to write a bunch of duplicate
Class Libraries specifically coded to a particular version of
Word/Office and then load those specific assemblies from the core
add-in, I would like to know.
Thanks in advance,
Rob