Automatically hide a page when printing

Solved
iratihel Posted messages 41 Status Member -  
iratihel Posted messages 41 Status Member -
Hello,

I am using Word 2010 and I have a file with a page that I want to hide when printing. This page contains all the references and bookmarks that my users need to fill out (a kind of very simplified form). My document has a cover page, a table of editable references with bookmarks, a table of contents, and the body of the document.

But the problem is that this reference page, isolated by a section break, should not be printed, and my users are real slackers who don't want to go into the page/section numbers to print in the print settings... They just hit the print button when they need to print!

So I was thinking of "hiding" this page from printing (a bit like hiding rows and columns in Excel). But since all the editable references in the document are listed on this page, I can't hide the text via font properties, otherwise all my bookmarks references would also be hidden. And the text becomes text... with holes!

And at the same time, since I will end up with an additional page, how can I tell Word not to count it in the total number of pages in the document? My old formula of {=NUMPAGES-1} does not seem to work in Word 2010....

Does anyone have a solution to propose?

Thank you in advance!

Configuration: Windows XP / Internet Explorer 8.0

5 answers

m@rina Posted messages 27409 Registration date   Status Moderator Last intervention   11 562
 
Good evening,

I didn't understand where this sheet that is not supposed to be printed is located.

Moreover, according to the form to fill out, it isn't necessarily required. For example, we can use ASK fields or FILLIN fields.
The best option is probably to create a userform in VBA.

For pagination, start at 1 from page 2:
https://faqword.com/index.php/word/faq-word/forme/754-comment-paginer-un-document-a-partir-de-la-page-2-en-commencant-la-numerotation-a-1

If it's not the first page, you can do your subtraction like this:
{= {NUMPAGES} -1}
The fields haven’t changed at all since the dawn of Word!!

m@rina

--
If you want to be helped effectively, make sure you are on the right forum,... and specify the software used as well as its version. We lack clairvoyants!
0
iratihel Posted messages 41 Status Member 5
 
Hello,

Thank you M@rina for the page numbering; actually, I hadn't placed the brackets in the right place...

Regarding the page I want to hide when printing, it's located on the very first page of the document. Users fill in the table (document title, author, document reference, issuing department...) and by pressing Ctrl+A and F9, the fields inserted in the doc update automatically without opening any additional dialog box. I thought about creating a userform, but the users don't want that. They don't want a dialog box to open every time they make a change to the text content.

One of them suggested deviating from using style formatting. I create a style called Document_Title, for instance, which I define on my first page, and each time I apply this style in the text, it displays the variable linked to the called style. It's complicated to set up and even more to explain...

With the fill-in and ask fields, every time the text refreshes via F9, dialog boxes open to request input for the field modifications. So, I can't use them. It's a real headache!!

If anyone has an idea to suggest because right now I'm not sure how to tackle the problem... Thank you in advance!
0
iratihel Posted messages 41 Status Member 5
 
Hello again,

I ultimately opted for the ActiveX control editing zone. It opens a dialog box but only if the user double-clicks on it to modify the content. And with a small insertion of the Ref field from QuickPart, everything updates correctly in my document.

But I still don't know if it's possible to force Word not to print the first page that contains the variables...
0
m@rina Posted messages 27409 Registration date   Status Moderator Last intervention   11 562
 
Hello,

The idea of the style was a good one and very simple to implement.
In fact, you put different styles in the form, and the text is taken up by REFSTYLE fields. But, well... an ActiveX control is still more suited for this kind of thing.

For your printing, since you do not want manual choices, the only solution is a macro. In this case, you need to "override" the usual commands with macros.

Look at my explanation here:
https://faqword.com/index.php/word/faq-word/vba-solutions/527-comment-remplacer-laction-dune-commande-word-existante-par-une-macro

m@rina

--
If you want to be helped effectively, make sure you are on the right forum,... and specify the software used as well as its version. We are not fortune tellers!
0
iratihel Posted messages 41 Status Member 5
 
Thank you very much m@rina. I will set all this up tomorrow and do some tests to verify that it works on all the stations.
0