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 |
#1
|
|||
|
|||
Invisible Multiple Fields in PageHeaders (Word 2003)
In Word 2000 or 97, the following fields used to work fine, even INSIDE THE
PAGEHEADER: {if {DOCVARIABLE X \ *MERGEFORMAT} "." (condition) {QUOTE {DOCVARIABLE X \*MERGEFORMAT} \@ "dd/mm/yy" \*MERGEFORMAT} (show this if true) {DATE \@ "dd/mm/yy" \*MERGEFORMAT} (show this if False) } If the variable X is ".", the fields show the actual Date. If X is different (like X ="01/06/2005"), the fields show X in "dd/mm/yy" format (so the result would be "01/06/05") But (only) in Word 2003, and (only) if these fields are in the pageheader (or footer), it simply show NOTHING when the condition is false (it should show the Docvariable X in "dd/mm/yy" format)... I´ve tested several other simplier IF fields in the pageheader, and they result in "" (blank) only in Word 2003. Can someone help? |
#2
|
|||
|
|||
Invisible Multiple Fields in PageHeaders (Word 2003)
Sounds like the fields are not being updated. Check the Update fields item
under ToolsOptionsPrint. Then use Print Preview. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... In Word 2000 or 97, the following fields used to work fine, even INSIDE THE PAGEHEADER: {if {DOCVARIABLE X \ *MERGEFORMAT} "." (condition) {QUOTE {DOCVARIABLE X \*MERGEFORMAT} \@ "dd/mm/yy" \*MERGEFORMAT} (show this if true) {DATE \@ "dd/mm/yy" \*MERGEFORMAT} (show this if False) } If the variable X is ".", the fields show the actual Date. If X is different (like X ="01/06/2005"), the fields show X in "dd/mm/yy" format (so the result would be "01/06/05") But (only) in Word 2003, and (only) if these fields are in the pageheader (or footer), it simply show NOTHING when the condition is false (it should show the Docvariable X in "dd/mm/yy" format)... I´ve tested several other simplier IF fields in the pageheader, and they result in "" (blank) only in Word 2003. Can someone help? |
#3
|
|||
|
|||
Invisible Multiple Fields in PageHeaders (Word 2003)
Thanks for your answer...
But, the problem is not with the printings... The fields, when updated, simply disappear in the screen, as well as in it´s printing. Having tested it for several times, i concluded: "IF" Fields, when reffering to other fields (Date, DocVariables, etc), do not work when you put them inside the PageHeader, but only in Word 2003. If you want to see it with your own eyes, i could send you a copy of this document by email. I think I´m right when I say that the problem is with Word2003, but I´d preffer to be wrong, cause many people have been using the documents I developed, and I´ll have to work hard to modify all of them to be used with Word 2003. Thanks a lot, Roberto Villa Real "Doug Robbins" escreveu: Sounds like the fields are not being updated. Check the Update fields item under ToolsOptionsPrint. Then use Print Preview. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... In Word 2000 or 97, the following fields used to work fine, even INSIDE THE PAGEHEADER: {if {DOCVARIABLE X \ *MERGEFORMAT} "." (condition) {QUOTE {DOCVARIABLE X \*MERGEFORMAT} \@ "dd/mm/yy" \*MERGEFORMAT} (show this if true) {DATE \@ "dd/mm/yy" \*MERGEFORMAT} (show this if False) } If the variable X is ".", the fields show the actual Date. If X is different (like X ="01/06/2005"), the fields show X in "dd/mm/yy" format (so the result would be "01/06/05") But (only) in Word 2003, and (only) if these fields are in the pageheader (or footer), it simply show NOTHING when the condition is false (it should show the Docvariable X in "dd/mm/yy" format)... I´ve tested several other simplier IF fields in the pageheader, and they result in "" (blank) only in Word 2003. Can someone help? |
#4
|
|||
|
|||
Invisible Multiple Fields in PageHeaders (Word 2003)
Please send me a copy of the document and I will check it out.
-- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... Thanks for your answer... But, the problem is not with the printings... The fields, when updated, simply disappear in the screen, as well as in it´s printing. Having tested it for several times, i concluded: "IF" Fields, when reffering to other fields (Date, DocVariables, etc), do not work when you put them inside the PageHeader, but only in Word 2003. If you want to see it with your own eyes, i could send you a copy of this document by email. I think I´m right when I say that the problem is with Word2003, but I´d preffer to be wrong, cause many people have been using the documents I developed, and I´ll have to work hard to modify all of them to be used with Word 2003. Thanks a lot, Roberto Villa Real "Doug Robbins" escreveu: Sounds like the fields are not being updated. Check the Update fields item under ToolsOptionsPrint. Then use Print Preview. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... In Word 2000 or 97, the following fields used to work fine, even INSIDE THE PAGEHEADER: {if {DOCVARIABLE X \ *MERGEFORMAT} "." (condition) {QUOTE {DOCVARIABLE X \*MERGEFORMAT} \@ "dd/mm/yy" \*MERGEFORMAT} (show this if true) {DATE \@ "dd/mm/yy" \*MERGEFORMAT} (show this if False) } If the variable X is ".", the fields show the actual Date. If X is different (like X ="01/06/2005"), the fields show X in "dd/mm/yy" format (so the result would be "01/06/05") But (only) in Word 2003, and (only) if these fields are in the pageheader (or footer), it simply show NOTHING when the condition is false (it should show the Docvariable X in "dd/mm/yy" format)... I´ve tested several other simplier IF fields in the pageheader, and they result in "" (blank) only in Word 2003. Can someone help? |
#5
|
|||
|
|||
Invisible Multiple Fields in PageHeaders (Word 2003)
Hi Roberto,
Using Word 2003 and the document that you sent to me, when I run a macro to set a value to the document variable and then use Print Preview, I get the opposite behaviour, the fields in the Header are updated, but those in the body of the document are not (regardless of the setting of the Update fields item under ToolsOptionsPrint). To get the fields in the body to update, it was necessary to select them and then press F9. However, whenever I work with document variables and docvariable fields (which is in virtually all of my templates), I include a routine to update the fields where ever they appear so that the user immediately sees the result. For your document, I used the following and with that, everything is displayed correctly. Dim i As Long With ActiveDocument .Variables("Data").Value = "25/12/2005" For i = 1 To .Sections.Count .Sections(i).Headers(wdHeaderFooterFirstPage).Rang e.Fields.Update .Sections(i).Headers(wdHeaderFooterPrimary).Range. Fields.Update .Sections(i).Footers(wdHeaderFooterFirstPage).Rang e.Fields.Update .Sections(i).Footers(wdHeaderFooterPrimary).Range. Fields.Update Next i .Range.Fields.Update End With -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Doug Robbins" wrote in message ... Please send me a copy of the document and I will check it out. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... Thanks for your answer... But, the problem is not with the printings... The fields, when updated, simply disappear in the screen, as well as in it´s printing. Having tested it for several times, i concluded: "IF" Fields, when reffering to other fields (Date, DocVariables, etc), do not work when you put them inside the PageHeader, but only in Word 2003. If you want to see it with your own eyes, i could send you a copy of this document by email. I think I´m right when I say that the problem is with Word2003, but I´d preffer to be wrong, cause many people have been using the documents I developed, and I´ll have to work hard to modify all of them to be used with Word 2003. Thanks a lot, Roberto Villa Real "Doug Robbins" escreveu: Sounds like the fields are not being updated. Check the Update fields item under ToolsOptionsPrint. Then use Print Preview. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Roberto Villa Real" wrote in message ... In Word 2000 or 97, the following fields used to work fine, even INSIDE THE PAGEHEADER: {if {DOCVARIABLE X \ *MERGEFORMAT} "." (condition) {QUOTE {DOCVARIABLE X \*MERGEFORMAT} \@ "dd/mm/yy" \*MERGEFORMAT} (show this if true) {DATE \@ "dd/mm/yy" \*MERGEFORMAT} (show this if False) } If the variable X is ".", the fields show the actual Date. If X is different (like X ="01/06/2005"), the fields show X in "dd/mm/yy" format (so the result would be "01/06/05") But (only) in Word 2003, and (only) if these fields are in the pageheader (or footer), it simply show NOTHING when the condition is false (it should show the Docvariable X in "dd/mm/yy" format)... I´ve tested several other simplier IF fields in the pageheader, and they result in "" (blank) only in Word 2003. Can someone help? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how do i set up template in vbeditor without proggramming language | ARRRGH | New Users | 4 | October 1st, 2005 03:19 AM |
Does Word have Keyboard Merges like Word Perfect does? | Donnas | Mailmerge | 1 | June 28th, 2005 09:30 PM |
Boiletplates from Word Perfect | linda | General Discussion | 1 | January 28th, 2005 05:37 PM |
Running Word 2000 Templates in Word 2003 | Kathy | General Discussion | 1 | November 4th, 2004 11:37 PM |
Word 2003 and XP performance issues | David Best | Formatting Long Documents | 4 | October 28th, 2004 06:09 PM |