Hi
I'm writing a addin to remove the custom properties within a word doc:-
The expample adds a custom property which works fine but what i need to do is then remove it (Remove does not work).
strIndex = "Test Custom";
strValue = "Test Value";
object[] oArgs = {strIndex,false,
MsoDocProperties.msoPropertyTypeString,
strValue};
Thanks
Redav
typeDocCustomProps.InvokeMember("Add", BindingFlags.Default |
BindingFlags.InvokeMethod, null,
oDocCustomProps, oArgs);
typeDocCustomProps.InvokeMember("Remove", BindingFlags.Default |
BindingFlags.InvokeMethod, null,
oDocCustomProps, oArgs);
I'm writing a addin to remove the custom properties within a word doc:-
The expample adds a custom property which works fine but what i need to do is then remove it (Remove does not work).
strIndex = "Test Custom";
strValue = "Test Value";
object[] oArgs = {strIndex,false,
MsoDocProperties.msoPropertyTypeString,
strValue};
Thanks
Redav
typeDocCustomProps.InvokeMember("Add", BindingFlags.Default |
BindingFlags.InvokeMethod, null,
oDocCustomProps, oArgs);
typeDocCustomProps.InvokeMember("Remove", BindingFlags.Default |
BindingFlags.InvokeMethod, null,
oDocCustomProps, oArgs);