Envelopes, Mail Merge, and Background Printing

W

Wilson Pye

Hi,

How do you print more than one envelope?
I have a cursor with a few records and I want to print them. I have been
using the "oDocument.Envelope.Printout(.T., , ,.F., oWord.UserAddress)" and
it works for one record.


How do you stop the program from running with "oDocument.Envelope.Printout"?
With documents I have been using:

oMergedDocument = oWord.ActiveDocument
WITH oMergedDocument
.PrintOut(.F., , wdPrintAllDocument)
ENDWITH

Cindy M said in a reply for another posting:
"You need to set the BackgroundPrinting option (part of the
Application.Options collection) to FALSE. This way, your VFP code will wait
with execution (closing everything) until the print job has completed
spooling."

What does the code look like to set the
Application.Options.BackgroundPrinting to FALSE?


Wilson
 
C

Cindy M -WordMVP-

Hi Wilson,

Apparently, I misunderstood your original question. But I'm not much wiser on
reading this one. You don't really explain what problem you're running into,
so it's difficult to work out what you might need.

you've performed a mail merge, to a new document? And this merge document is a
number of envelopes - one for each record in the mail merge?

If you just want to print everything out, the use .PrintOut with no arguments.
And before you do, set the option I mentioned in a separate line of code.

wdapp.Options.PrintBackground = False
How do you print more than one envelope?
I have a cursor with a few records and I want to print them. I have been
using the "oDocument.Envelope.Printout(.T., , ,.F., oWord.UserAddress)" and
it works for one record.


How do you stop the program from running with "oDocument.Envelope.Printout"?
With documents I have been using:

oMergedDocument = oWord.ActiveDocument
WITH oMergedDocument
.PrintOut(.F., , wdPrintAllDocument)
ENDWITH

Cindy M said in a reply for another posting:
"You need to set the BackgroundPrinting option (part of the
Application.Options collection) to FALSE. This way, your VFP code will wait
with execution (closing everything) until the print job has completed
spooling."

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
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