#1
|
|||
|
|||
PRINT field code in Word document not working as expected
Hi all. I'm using Word 2010 and have a 3 page document in doc format. Each page is separated by an odd page break. My printer is set up with white and ivory paper. I have placed a PRINT field code with the following text on the 2nd page:
{ PRINT \p page "<</MediaColor(Ivory)>> setpagedevice" } The first page prints on white, the 2nd on ivory, but the 3rd is also printing on ivory. The "\p page" is supposed to affect the current page only as far as I'm aware. How can i get the 3rd page to go back to white paper without placing any other field codes? FYI, i posted this on on a Google groups forum, but didn't get any bites so am trying here. PRINT field code in Word document not working correctly - Google Groups |
#2
|
||||
|
||||
Quote:
Quote:
{IF{PAGE}= 2 { PRINT \p page "<</MediaColor(Ivory)>> setpagedevice" } { PRINT \p page "<</MediaColor(White)>> setpagedevice" }}
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks Paul. I neglected to mention that I placed the field code in the main body of the 2nd section/page for this test. That said, I do have "Link to previous" set to False for every section.
I also neglected to mention that I am using a PostScript printer driver. I tried enabling "Use printer metrics to lay out document", but that didn't change anything. The test document I am using is a simplified version that was originally built by an automated service using individual templates. It also uses Word 2010 and the doc format. Placing a field code in the one template that I'd like to behave differently is OK, but I can't place IF fields in all of them because there are about 7000. I am going to try building a very basic test document manually in case there's something else at work here. Let me know if there's anything else i can try. |
#4
|
||||
|
||||
I'd be inclined to put the field code into the header anyway, as it's less susceptible to deletion/corruption by unwitting users there. And, regardless of whether you're using "Link to previous", one field such as I suggested will cover all scenarios. A macro could be used to update all your templates.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tabbing not working as expected? | PhoenixJames | Word | 2 | 08-30-2019 01:52 PM |
PgUp/PgDn not working as expected in Word 2019; macro workaround? | AmyJSchneider | Word VBA | 0 | 01-19-2019 03:45 PM |
VBA Code to search for field codes with certain text before the Field code and to change style | welcometocandyland | Word VBA | 4 | 02-08-2017 06:53 PM |
Field Code/Switch for Time not working | Ozzie2842 | Mail Merge | 1 | 12-20-2016 01:08 PM |
Field Code won't print an image | John Sutton | Word | 4 | 07-28-2014 08:40 AM |