Printing with word automation

M

Martin Roy

Hi,

I already made a small application that open a word document, assigner
document variables and print result, all in background without showing the
application (visible=false)

When not using print dialog (using PrintOut method), word print the document
fine and not showing application but if I use print dialog using this method
:

PrntDlg = word.dialogs.Item(88);
PrntDlg.Show().

After pressing OK in the dialog, word become visible to print the document.
I want to prevent this to happens. If I add visible=false after the show
method, the application flash quickly but I don't want ANY flash or
application visibility.

So here's my question, is it possible to print document from print dialog
without showing the application. I also tried to minimize application
(WindowState = 2) but it seems that application must be visible for this
properties to works.

Thanks for your help

Martin Roy
(e-mail address removed)
 

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