How to print multiple documents using C#

S

sparre

Hello

I have and application class instance used to genereate a number of similar
documents from a Word template, now I need all these documents printed out.

Is there a way to have the print dialog shown once and then use the settings
from that to print out all the other document so the user does not have to
see a whole bunch of dialogs.

Or is it possible to "merge" or "join" all those documents in to one single
document? and then print out that single one ?
 
S

Sparre

sparre skrev:
Hello

I have and application class instance used to genereate a number of similar
documents from a Word template, now I need all these documents printed out.

Is there a way to have the print dialog shown once and then use the settings
from that to print out all the other document so the user does not have to
see a whole bunch of dialogs.

Or is it possible to "merge" or "join" all those documents in to one single
document? and then print out that single one ?

Ok, I might have found a solution to my problem, but I dont really know
if there is any problems with it in the long run, haven't testet it on
a larger scale.

I create at List<> of Word.Document's and each time I add a document to
the Word.Application instance I also add it to the list. The Dialog
wdDialogFilePrint prints the active document by it self so I use
Activate() on the the first document so that gets printed first. The I
use a for loop to print the rest of the documents.

This works ok, as the options chosen in the wdDialogFilePrint dialog
applies to all documents in that Word.Application instance.

Anyway this solved my problem, but if anyone know off issues with this
approach please let me know..
 

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