View Single Post
  #25  
Old August 9th, 2009, 03:47 PM posted to microsoft.public.word.docmanagement
Beth Melton
external usenet poster
 
Posts: 832
Default StyleRef Formatting Frustrations

If this doesn't work then trying applying the character style before
inserting your form field. That should be enough to correct the issue.

~Beth Melton
Microsoft Office MVP

"Dax Arroway" wrote in message
...
OMG!!! That works. OK, so the answer seems to be:

Insert form field,
Apply character style,
Use Reset Form Fields to get it to switch back to desired font,
Insert StyleRef into pre-formatted paragraph in footer/header,
Ignore false font listing because it will correct itself when the locked
form field has text entered into it.
Lock the doc,
And type into the form to make sure the auto-correct is happening.

I've assigned different fonts to the form fields and left the assigned
footer font and when I type intot he form field, the footer autocorrects
to
the footer font. I've changed the footer font from one font to the other
and
I get the same results. I think this cracks it. *fingers crossed* We'll
see what happens when I let it out on the server on Monday.

I'd like to thank all who have chimed in on this issue. It's turned into
a
party! All your input has been invaluable and I really appreciate your
attention. Thank you!

--Dax Arroway


--
I would give my left hand to be ambidextrous!


"Lene Fredborg" wrote:

I understand your sigh!

When testing the form fields before posting last time, I actually forgot
about your original description of the StyleRef problem (my mistake,
sorry).
I have now tested more here. What I see here is a bit different from what
you
describe (and while I was testing etc., Stefan’s and Suzanne’s most
recent
posts appeared…):

I have tried to repeat the exact steps you describe - and I did it more
than
once.
My StyleRef field show MS Mincho before I type text in the protected
form,
but as soon as I start typing, the font in the StyleRef field is
automatically corrected (i.e. no more MS Mincho here).

I also tried doing things in a different order and with different fonts
used
in the underlying paragraph styles in the main body and the header, but
the
result was the same: the StyleRef field corrects itself to the correct
font
when I start typing in the text form field in the protected form.

So for some unknown reason, I seem be luckier with the final result of
the
StyleRef field than you. Unfortunately, I don’t have any good ideas of
how to
cure your StyleRef font problem if your font removal does not make any
difference.

-------------------------
Now, a bit later - after having read the KB article (link from Stefan’s
post: http://support.microsoft.com/kb/828501/en-us):

I tried to follow the instructions in the article: First applied the
style
(in this case the character style), then created the text form field. If
I
placed the cursor at one of the ends of the form field in the unprotected
form, the ”Style” field in the Formatting toolbar shows that the
character
style was applied. However, when I selected the entire form field, the
“Style” field was empty, indicating that different styles were in use in
the
selection. But the text form field looked OK (correct font). I inserted a
StyleRef field in the header with the correct name of the character
style.
Even if formatting marks were shown, the StyleRef field did not reflect
the
empty text form field.

I now protected the document and typed text in the form field. BUT the
StyleRef field remained blank (and did not show any error either). First
when
I unprotected the document, selected the form field with its text and
reapplied the character style, the text appeared in the StyleRef field. I
could reproduce this behavior (tried a number of times). So the method
described in the KB article may seem to solve the problem but something
wrong
is going on under the surface…

I have tested in both Word 2003 and 2007. I have only seen the above
problems in Word 2003 whereas Word 2007 has shown the correct font and
style.

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Dax Arroway" wrote:

I'm not sure which switch that would be or if it's possible. Switches
I see
available are \l \n \p \r \t and \w all of which do not control
characters.
Is there one that I can add?
--
I would give my left hand to be ambidextrous!


"Suzanne S. Barnhill" wrote:

Can you add a CharFormat switch to the form field and/or StyleRef
field?
Though that might actually do just the opposite of what you want.
sigh

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Dax Arroway" wrote in message
...
Oh so totally close! So, thinking that I'd just scrap the whole
thing and
start from scratch I decided to practice on a blank doc first.
Open New
Insert Text Form Field Create New Character Style Apply Character
Style
to
Form Field yep, changes to MS Mincho on this machine
(home--Word03)
apply
Form Reset (that works) insert StyleRef into Header Lock the
Form Test,
and then... What happens is the first word, whether it's one
character or
20, is formatted with the MS Mincho font and the following words,
after
the
first space, is formatted with my Normal Paragraph Font. *sigh*

I don't think other languages are installed and I'm not sure where
to go
to
check. I tried uninstalling both MS Mincho and MS Gothic and my PC
says
it
can't uninstall them cause another program is using it (not sure
which).
I'll reboot in safe mode and see if I can get rid of them and try
this
again.

--
I would give my left hand to be ambidextrous!


"Lene Fredborg" wrote:

In the past, similar issues have been associated with form fields
converting
to MS Mincho

I don’t have any Asian language enabled, either. In Word 2003,
when I use
Ctrl+Spacebar (which runs the ResetChar command as does
Ctrl+Shift+Z),
the
font of the form fields here change to MS Mincho. I have created a
lot of
forms and the problem is rather annoying. However, resetting the
form
fields
(e.g. using Reset Form Fields in the Forms toolbar) corrects the
problem
here
and reverts the form fields to the correct formatting.

MS Mincho is also erroneously applied if I apply a character style
to a
form
field. Resetting the form fields also cures that problem here.
Maybe it
will
work for you too, Dax.

I have just checked in Word 2007 and the problem seems to be gone
there.
I
am inclined to use Word 2003 whenever possible but maybe I will
use Word
2007
for forms from now on…

By the way, I am ambidextrous ;-)

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft
Word


"Suzanne S. Barnhill" wrote:

I think Peter has identified some of the key issues involved. In
the
past,
similar issues have been associated with form fields converting
to MS
Mincho
(a Japanese font), which is equally infuriating, and I have had
this
happen
even outside of fields when using Ctrl+Spacebar on some
characters that
I
believe are (covertly) drawn from Arial Unicode MS (en and em
spaces).
I
don't have any Asian language enabled, either, so it is puzzling
why
this
happens. I know that MS (or at least some people at MS) are
aware of
issues
of this type because I've submitted problem documents where this
sort
of
thing was happening.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Dax Arroway" wrote in
message
...
Ms. Barnhill herself! WOW! Thanks for coming to my rescue.
I'm
honored.

I'm using a character style. Funny thing is when I simply
insert a
form
field its Normal Style (Arial) but if I apply the Normal Style
to the
form
field, it switches to MS Gothic. If I insert the field and
clear the
formatting (CTRL+Spacebar) it switches to MS Gothic. This
leads me
to
believe that there's an underlying Font field imbeded within
the
document
somewhere or somehow. I even changed the Default Font by
using the
Font
dialog box and selecting the Default button but this doesn't
fix it.

PS: I don't even have MS Gothic on this machine. MS Gothic,
or
whatever
it's defaulting to... is ugly!
--
I would give my left hand to be ambidextrous!


"Suzanne S. Barnhill" wrote:

Are you using a paragraph or character style? If the latter,
you
should
base
it on Default Paragraph Font, and you shouldn't see this
issue. If
it's a
paragraph style, what style is it based on?

FWIW, I've never even heard of MS Gothic.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Dax Arroway" wrote in
message
...
OK, this is driving me friggen nuts! I'm hoping someone
can
please
help.

I have a form (Word 03) that I'm trying to use sbarnhill's
SytleRef
trick
with. The Useful StyleRef tricks page is:
http://sbarnhill.mvps.org/WordFAQs/S....htm#FormField
because I want to insert a Name field (client entered) and
Date
field
(client entered) into the footer. So far so good. I did
all of
the
instructions and everything works --except-- the formatting
of the
form
fields turn from my Normal Style Font (Arial 10pt.) to MS
Gothic
and I
can't
figure out why or how to fix it.

I've tried switching the Style Type to Paragraph and it
still
changes
to
MS
Gothic when the style is applied to the form field. I
tried
deleting
it
and
reformatting it by entering Arial into the Formatting field
ofthe
New
Style
dialog--still MS Gothic. And it gets weirder! If I insert
a form
field,
just a normal one, and apply the Normal Style to it, it
changes to
MS
Gothic
Font even though it was all ready Normal Style in the first
place!
AAHHHH!!
Am I going crazy or what? Does anyone have any clue as to
what
the
heck
is
happening with this form? Where is the MS Gothic Font
coming
from?
It's
not
in any of my Styles or Normal.dot. Grrrrr.

Would someone kindly tell me where this might be coming
from?
'Cause
I'm
about to through my monitor out the window! I know that
won't fix
my
problem
but it sure would feel good! I'm sure some of you know
what I'm
talking
about! Anyway, if any Gurus out there could please come to
my
rescue,
I
sure
would appreciate it. Much much thanks in advance!
Best,
Dax
--
I would give my left hand to be ambidextrous!