Print multiple copies with script?

Hello,

Is there any way to print multiple copies of a document within a script? I
have been using the PrintOut method of the BODocument class, but there does
not seem to be any way to print more than one copy with this command.

Of course, I could call the PrintOut method multiple times. The trouble is
that this spools multiple times to our printer queue. We are printing some
very large reports (about 8000 pages) and it takes 3-4 hours just to spool
one copy. If I could specify the number of copies with one PrintOut
command, then spooling would only take place one time. Any ideas or will I
have to wait until my enhancement request to BO is implemented?

Chad Berghorst
Gordon Food Service


Listserv Archives (BOB member since 2002-06-25)

In a message dated 4/2/99 4:13:13 PM Central Standard Time,
cberghorst@GFS.COM writes:

Of course, I could call the PrintOut method multiple times. The trouble is
that this spools multiple times to our printer queue. We are printing some
very large reports (about 8000 pages) and it takes 3-4 hours just to spool
one copy.

Just a thought:

Is there really a business need to print a document with 8,000 pages? It
seems that a report that large will never be fully utilized by users offline.
Why not distribute the file online and allow filters / slice and dice / etc.
operations? Or better yet, distribute the basic query to the users and let
them add their own specific conditions, resulting in a more manageable (say,
2,000 pages ) report size.

Now, to answer your question: I have not found a way to use the print command
in the BusObj scripting to print multiple copies. I simply create a loop that
says something like “for i = 1 to num_copies print next i” or something along
those lines.

But I would wonder if there really was a need to print an 8,000 page report,
much less multiple copies. Then again, I have no idea what your situation is!

Regards,
Dave Rathbun
Integra Solutions
www.islink.com


Listserv Archives (BOB member since 2002-06-25)