S
Sune Keller
Hi,
I'm currently developing a C# project using late binding to integrate with
different versions of Word. I'm calling methods and properties like this:
object documents = wordApplication.GetType().InvokeMember("Documents",
BindingFlags.GetProperty, null, wordApplication, null);
object wordDocument = documents.GetType().InvokeMember( "Open",
BindingFlags.InvokeMethod, null, documents, new object[12] { filename,
....... } );
My problem is that do want do do som stuff using Word's Quit event, but I
dont know how to do this using late binding? Can anyone provide me with some
sample code?
Kind Regards,
Sune
I'm currently developing a C# project using late binding to integrate with
different versions of Word. I'm calling methods and properties like this:
object documents = wordApplication.GetType().InvokeMember("Documents",
BindingFlags.GetProperty, null, wordApplication, null);
object wordDocument = documents.GetType().InvokeMember( "Open",
BindingFlags.InvokeMethod, null, documents, new object[12] { filename,
....... } );
My problem is that do want do do som stuff using Word's Quit event, but I
dont know how to do this using late binding? Can anyone provide me with some
sample code?
Kind Regards,
Sune