If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
StyleRef Formatting Frustrations
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! |
#22
|
|||
|
|||
StyleRef Formatting Frustrations
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! |
#23
|
|||
|
|||
StyleRef Formatting Frustrations
I've encountered this issue numerous times and never had any international
languages enabled either. I forget why this occurs and I can't seem to find an email I once had that provided the reason for it. I do know it wasn’t the same as the KB article Stefan cited. But I do know the workaround provided in the article does work and that is to apply the style before you insert the form field. I noted your document uses direct formatting instead of styles and I don't recall this occurring with direct formatting. As a matter of fact that is one of the workarounds. Perhaps it's because the Normal style has been modified? In any event, if you're not familiar with how to create a style follow these steps: - Place your insertion point in the location in one of your text form fields (this will enable the style to pick up your existing formats) - From the Format menu, click Styles and Formatting - On the Styles and Formatting task pane, click New Style - Provide a name for your style, such as Form Fields - Verify the formats - Click OK Note that it's been awhile since I've used Word 2003 so the above steps and command names may be slightly different - I'm going on memory. :-) Then once your Style is created, delete each text form field, apply the style, and then insert the text form field again. I used this method a lot when creating forms in Word 2003 so it should work for you. Thankfully you only have a few text form fields. When I first encountered the issue it was on three forms, each with over 100 form fields most of which had various Property changes, macros assigned, every form field was named, etc. Needless to say I was not a happy camper! ~Beth Melton Microsoft Office MVP "Dax Arroway" wrote in message news I read the article and tried making internation languages and language unavailable but the issue still remains. This wouldn't change anything, I'm thinking, because if it were open by another on the server (form is a .dot available to the company) then what was installed and turned on on the user's machine would dictate. What's the CharFormat switch for the StyleRef? -- I would give my left hand to be ambidextrous! "Stefan Blom" wrote: STYLEREF field supports formatting switches but, as far as I know, form fields do not. More importantly, however, in recent versions of Word, form fields and font formatting may be difficult for the reason explained in the following KB article: http://support.microsoft.com/kb/828501/en-us ("Incorrect font is applied after a style is applied to a form field in Word 2007 or in Word 2003"). -- Stefan Blom Microsoft Word MVP "Suzanne S. Barnhill" wrote in message ... 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! |
#24
|
|||
|
|||
StyleRef Formatting Frustrations
I am glad you can make it work now too. Hope it also works on Monday.
Actually, I am sure the time I spent testing in relation to your question will help me later. I have registered the problem many times without taking the time to really find out what was going on. -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Dax Arroway" wrote: 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 |
#25
|
|||
|
|||
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! |
#26
|
|||
|
|||
StyleRef Formatting Frustrations
What's really going on is a bug. :-)
I finally located an old email on this issue and this is what I was told when I reported it: "The cause is a bug in a “font fix-up” routine. This routine is used when dealing with Asian fonts. Asian fonts are different in that font substitution is frequently needed as the fonts are frequently not on the system, and also in that text written in Asian fonts frequently needs to be increased in point size to look good in Asian documents. I know this sounds unrelated to the bug you reported, but the bug is that font fix-up is running when it shouldn’t." ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... Actually, I am sure the time I spent testing in relation to your question will help me later. I have registered the problem many times without taking the time to really find out what was going on. |
#27
|
|||
|
|||
StyleRef Formatting Frustrations
OK, I did not mean it wasn’t a bug :-). I only meant that now I know more
precisely what I can expect to happen when - and what to do to compensate for the wrong behavior. Hopefully, Microsoft will fix the bug some day since they obviously know what causes it. -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Beth Melton" wrote: What's really going on is a bug. :-) I finally located an old email on this issue and this is what I was told when I reported it: "The cause is a bug in a “font fix-up” routine. This routine is used when dealing with Asian fonts. Asian fonts are different in that font substitution is frequently needed as the fonts are frequently not on the system, and also in that text written in Asian fonts frequently needs to be increased in point size to look good in Asian documents. I know this sounds unrelated to the bug you reported, but the bug is that font fix-up is running when it shouldn’t." ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... Actually, I am sure the time I spent testing in relation to your question will help me later. I have registered the problem many times without taking the time to really find out what was going on. |
#28
|
|||
|
|||
StyleRef Formatting Frustrations
Gotcha. :-)
I'm not able to reproduce this behavior on newly created documents in Word 2007 so it may have been corrected. I know in Word 2002 and 2003 if you applied a style to a form field and then protected the document you'd see the font change immediately. Of course I don't know if it will crop up under specific circumstances in Word 2007 since after my encounter with it I now apply the styles prior to inserting form fields. It only takes encountering a bug once and spending hours recreating 100s of form fields to vow to never allow it to happen again! grin ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... OK, I did not mean it wasn’t a bug :-). I only meant that now I know more precisely what I can expect to happen when - and what to do to compensate for the wrong behavior. Hopefully, Microsoft will fix the bug some day since they obviously know what causes it. -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Beth Melton" wrote: What's really going on is a bug. :-) I finally located an old email on this issue and this is what I was told when I reported it: "The cause is a bug in a “font fix-up” routine. This routine is used when dealing with Asian fonts. Asian fonts are different in that font substitution is frequently needed as the fonts are frequently not on the system, and also in that text written in Asian fonts frequently needs to be increased in point size to look good in Asian documents. I know this sounds unrelated to the bug you reported, but the bug is that font fix-up is running when it shouldn’t." ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... Actually, I am sure the time I spent testing in relation to your question will help me later. I have registered the problem many times without taking the time to really find out what was going on. |
#29
|
|||
|
|||
StyleRef Formatting Frustrations
As mentioned in one of my previous posts in this thread, I have also tested
in Word 2007 and until now I have not seen the problem in that version (I have SP2 installed). For me, the font changes to MS Mincho in Word 2003 as soon as I apply a style or press Ctrl+Spacebar (even if there is no direct formatting to remove). I do not have to protect the document in order to provoke the bug. Also note that if a StyleRef field is involved, it is not sufficient for me to follow the instructions in the KB article. Even if I apply the style first, the StyleRef field does not work correctly - it does not get updated when typing text in the form field. It only works if I reset the form fields first (for further details, see the previous post). And yes, I know the feeling of first spending hours on digging into a problem and then spending hours or days on making corrections to compensate for a bug. I have nothing positive to say about how that feels g. -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Beth Melton" wrote: Gotcha. :-) I'm not able to reproduce this behavior on newly created documents in Word 2007 so it may have been corrected. I know in Word 2002 and 2003 if you applied a style to a form field and then protected the document you'd see the font change immediately. Of course I don't know if it will crop up under specific circumstances in Word 2007 since after my encounter with it I now apply the styles prior to inserting form fields. It only takes encountering a bug once and spending hours recreating 100s of form fields to vow to never allow it to happen again! grin ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... OK, I did not mean it wasn’t a bug :-). I only meant that now I know more precisely what I can expect to happen when - and what to do to compensate for the wrong behavior. Hopefully, Microsoft will fix the bug some day since they obviously know what causes it. -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Beth Melton" wrote: What's really going on is a bug. :-) I finally located an old email on this issue and this is what I was told when I reported it: "The cause is a bug in a “font fix-up” routine. This routine is used when dealing with Asian fonts. Asian fonts are different in that font substitution is frequently needed as the fonts are frequently not on the system, and also in that text written in Asian fonts frequently needs to be increased in point size to look good in Asian documents. I know this sounds unrelated to the bug you reported, but the bug is that font fix-up is running when it shouldn’t." ~Beth Melton Microsoft Office MVP "Lene Fredborg" wrote in message ... Actually, I am sure the time I spent testing in relation to your question will help me later. I have registered the problem many times without taking the time to really find out what was going on. |
Thread Tools | |
Display Modes | |
|
|