C sharp - Propiedades Word

 
Vista:

Propiedades Word

Publicado por tito (4 intervenciones) el 11/07/2007 12:33:15
Buenas, resulta que estoy haciendo una aplicación para explotar las propiedades de archivos word, y con este codigo:

string strIndex = "Title";
string strValue;
object oDocAuthorProp = typeDocBuiltInProps.InvokeMember("Item",
BindingFlags.Default |
BindingFlags.GetProperty,
null, oDocBuiltInProps,
new object[] { strIndex });
Type typeDocAuthorProp = oDocAuthorProp.GetType();
strValue = typeDocAuthorProp.InvokeMember("Value",
BindingFlags.Default |
BindingFlags.GetProperty,
null, oDocAuthorProp,
new object[] { }).ToString();
txtpasswd.Text = "The Author is: " + strValue;

Mi problema es que con propiedades normales me funciona, pero si son propiedades avanzadas de Word no me va, y necesitaba que fuera sobre estas ultimas, si alguien sabe hacerlo que me guie un poco, gracias :)
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder