WORD VBA: How to send 'Pagebreak' to printer

M

Mark Findlay

I currently have a javascript function that prints multiple Word documents
in a loop via VBA (see pseudocode below)

loop:
oWord.Documents.Open(sFilename,false,true);
oWord.Documents.Item(1).PrintOut(false);
oWord.Documents.Close();

.... but I need to send a PageBreak between each document. Can anyone show me
how to accomplish this?

Many Thanks!
Mark
 
L

lostinspace

----- Original Message -----
From: "Mark Findlay" <>
Newsgroups:
microsoft.public.word.vba.general,microsoft.public.word.web.authoring
Sent: Friday, May 14, 2004 2:48 PM
Subject: WORD VBA: How to send 'Pagebreak' to printer

I currently have a javascript function that prints multiple Word documents
in a loop via VBA (see pseudocode below)

loop:
oWord.Documents.Open(sFilename,false,true);
oWord.Documents.Item(1).PrintOut(false);
oWord.Documents.Close();

... but I need to send a PageBreak between each document. Can anyone show me
how to accomplish this?

Many Thanks!
Mark

Mark,
I'm not a Java guy, in fact, have it turned off in my browser.
Does Java allow you to insert printer codes?
Esc-027 used to be a universal printer clear code. Possibly you may insert
that after each document feed and it may do what you desire?
 

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