D
David Thielen
Hi;
I am trying somehow to get these bugs reported to the Word group (having no
luck so far):
To delete a Word.Document.Variable in Word.Document.Variables you have to
call
object obj = var.Name;
document.Variables.get_Item(ref obj).Delete();.
I am assuming this is because of the ref object passed to it. But it is
strange that you can’t call
document.Variables[var.Name].Delete();.
And the intellisense in VisualStudio allows the [string] but does not know
of the get_Item. (I’m not sure this is a bug because of how PIAs are built
but it does strike me that it could be.)
- dave
I am trying somehow to get these bugs reported to the Word group (having no
luck so far):
To delete a Word.Document.Variable in Word.Document.Variables you have to
call
object obj = var.Name;
document.Variables.get_Item(ref obj).Delete();.
I am assuming this is because of the ref object passed to it. But it is
strange that you can’t call
document.Variables[var.Name].Delete();.
And the intellisense in VisualStudio allows the [string] but does not know
of the get_Item. (I’m not sure this is a bug because of how PIAs are built
but it does strike me that it could be.)
- dave