Q
Quique
I am trying to use Word 2003 Document Variables in a C#
program.
I have added two references to my .Net project:
* Office 11 object library
* Word 11 object library
My code is something that:
....
object varName = (object)"myVariable";
Variable myVar;
myVar = WordApplication.ActiveDocument.Variables[varName];
....
Compiler generates a message like this:
.... language doesn't allows property or indexer this ...
I try to use similar collections like Selection.Fields and
it works fine.
I think that it's a bug in the MSWORD.OLB file or in the
tlibimp.exe program.
Please, help me
program.
I have added two references to my .Net project:
* Office 11 object library
* Word 11 object library
My code is something that:
....
object varName = (object)"myVariable";
Variable myVar;
myVar = WordApplication.ActiveDocument.Variables[varName];
....
Compiler generates a message like this:
.... language doesn't allows property or indexer this ...
I try to use similar collections like Selection.Fields and
it works fine.
I think that it's a bug in the MSWORD.OLB file or in the
tlibimp.exe program.
Please, help me