How to detect and remove blank page

L

Lisa

Hello,

I am using vb to combine multiple document to a final document. I would
like to remove any empty page generated during the insert process. I try to
find a way to detect whether the page is empty. Any suggestion on what
object should I use or how to accomplish this?

Thanks in advance for your help.

Lisa
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TGlzYQ==?=,
I am using vb to combine multiple document to a final document. I would
like to remove any empty page generated during the insert process. I try to
find a way to detect whether the page is empty. Any suggestion on what
object should I use or how to accomplish this?
About the only way I know is to loop through all the pages, check the number of
characters, then delete. This sounds easy, but depending on what generates the
pages, it could be quite complicated. For instance, if you're document is set
up with different odd/even pages it could happen that you get an empty page
just because the following one should start on an even or odd page.

Also, is your definition of an "empty" page one on which you see no text when
it's printed out? Or one that really contains "nothing" (your app inserted a
page break that wasn't needed, or something)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top