D
David Thielen
Hi;
I create a variable (document is an object of the class Document):
object obj = "dave";
document.Variables.Add("WR_DATA", ref obj);
I then save the document, close it, and reload it using:
foreach (Variable var in document.Variables)
{
if (var.Name == "WR_DATA")
{
buf = var.Value;
break;
}
And get a totally random string like "w:autofitToFirstFixedWidthCe"
If we run on a Word file that is on the local drive this works fine.
And this is code that has worked fine forever for local & networked
office documents forever.
??? - thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm
I create a variable (document is an object of the class Document):
object obj = "dave";
document.Variables.Add("WR_DATA", ref obj);
I then save the document, close it, and reload it using:
foreach (Variable var in document.Variables)
{
if (var.Name == "WR_DATA")
{
buf = var.Value;
break;
}
And get a totally random string like "w:autofitToFirstFixedWidthCe"
If we run on a Word file that is on the local drive this works fine.
And this is code that has worked fine forever for local & networked
office documents forever.
??? - thanks - dave
david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Cubicle Wars - http://www.windwardreports.com/film.htm