Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

How to print a blank page from Word VBA ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jm.almeras - 19 May 2006 18:07 GMT
Hello dear VBA experts,

In a Word macro I need at some point to print a white page, for which I
suppose one needs to send to the printer currently active within Word, some
code like a page feed...) I explain the purpose of my macro at the end of
this
post if your are curious to know why.

I have tried selecting a paragraph mark and printing the current selection,
unfortunately this will printout the  eader and footer too, so it does not
match my need.

I suppose it needs to be done with windows printing API

Any advice and/or piece of code will be welcome

All the best to you

Jean-Marie

PS : My macro will printout a word document as a leaflet on any printer, ie
a small leaflet which will be finely composed by taking the final bundle of
sheets of paper and folding it in the middle. It will need 4 goes, the first
go will printout odd pages on the right side of the paper sheets, then I
take the bundle of sheets and put them back into the printer and I print
another set of odd pages still on the right side of the paper (but on the
other side of the sheets), then two more goes will print even page numbers
on the left side of the paper. If you get the idea, you may imagine that
when reaching the last pages of the booklet, sometimes I must leave the
paper blank, but I wish the paper to come out of the printer.
Jean-Guy Marcil - 19 May 2006 19:16 GMT
jm.almeras was telling us:
jm.almeras nous racontait que :

> Hello dear VBA experts,
>
[quoted text clipped - 27 lines]
> the last pages of the booklet, sometimes I must leave the paper
> blank, but I wish the paper to come out of the printer.

So, sometimes, when you have a leaflet made up of a number of pages that are
not a multiple of 4 you need to have every fourth page blank so that if you
print many copies, the fourth blank page is included in the print out.

Is that right?

If so, why not just include that page in the document itself?
Add a section break "NextPage". Then, go into the headers/footers of this
last section and break the connection to the previous sections, finally,
delete al headers/footers content.

You could have a macro that does that if this is something you need to do
often.

Would that work for your purpose?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

jm.almeras - 20 May 2006 23:00 GMT
You are quite right, I had no thought of this, but it is indeed a good
solution
Merci, Bravo !
Jean-Marie

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.