Update of userField results in Junk Chars - MS mincho/Arial unicod

  • Thread starter Thread starter Tekraj
  • Start date Start date
T

Tekraj

Hi

We have a problem that is now strangely occuring in most machines with Word
2007 and windows XP.

When we attempt to update current document field values that are using a
simple VB form.
e.g.
ActiveDocument.Variables("subtitle") = Me.TxtSubtitle.Text
ActiveDocument.Variables("company") = Me.Txtcompany.Text
ActiveDocument.Variables("date") = Me.Txtdate.Text

and then

For Each fld In ActiveDocument.Fields
fld.Update
Next

The values appear junk and the fonts are changed to Arial Unicode or MS
mincho or similar fonts.

We attempted removing some chinese fonts but the values appear in some other
unicode fonts when updated.

Is it something to do with how MS office is installed and the fonts that go
along with it?

Any help would be appreciated.
 
There was a known problem a while back with Word 2007 and variables, but it
has long since been fixed. Check that Office 2007 is fully updated and then
if the issue then remains, the fix is at
http://support.microsoft.com/kb/970942/

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks Graham

This helped resolve the issue with with one of our users... i updated both
sp2 and the given hotfix.

I suppose the older docs with the corruption cannot be reverted but new docs
are not having this problem!

Many thanks!
 
Once the variables have been corrupted they remain corrupted. You would have
to re-assign the correct values to the variables. Depending on what the
variables were supposed to contain, you *may* be able to run a batch process
macro to restore the values.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top