running Word/Excel in silent mode with Office XP PIAs

B

Bob

Hi,

I am using Office XP PIAs. I want to use Word/Excel to printOut documents
w/o bringing up the application at all.
When I set the Visible field to false, I still get the printing window
appear for a little while.
Is that possible to run these applications with no windows popping up at
all?

I print out a document as follows
object myFalse = false;
object missing = Type.Missing;
aDocument.PrintOut(ref missing,ref missing,ref missing,ref missing,ref
missing,ref missing,ref missing,
ref missing,ref missing,ref missing,ref myFalse,ref myFalse,ref
missing,ref missing,
ref missing,ref missing,ref missing,ref missing);

Any help is greatly appreciated.

Thanks,
Bob
 
P

Peter Torr \(MS\)

Bob said:
I am using Office XP PIAs. I want to use Word/Excel to printOut documents
w/o bringing up the application at all.
When I set the Visible field to false, I still get the printing window
appear for a little while.
Is that possible to run these applications with no windows popping up at
all?

Hi,

Have you also tried making DisplayAlerts false?

Peter
 
B

Bob

Peter Torr (MS) said:
Hi,

Have you also tried making DisplayAlerts false?

Peter
Hi,

Peter, setting DisplayAlerts on the Excel app object to false didn't do the
trick.
Excel (with Visible set to false) still flashes the printing window (I used
both _PrintOut and PrintOut methods), which disappears as soon as the
printing job get spooled.

In case of Word, all works fine (no pop-ups at all). Thanks.

Is there another special property of the Excel app object to suppress the
printing window?

Thanks,
Bob
 
P

Peter Torr \(MS\)

Bob said:
Peter, setting DisplayAlerts on the Excel app object to false didn't do the
trick.
Excel (with Visible set to false) still flashes the printing window (I used
both _PrintOut and PrintOut methods), which disappears as soon as the
printing job get spooled.

In case of Word, all works fine (no pop-ups at all). Thanks.

Is there another special property of the Excel app object to suppress the
printing window?

Adding Excel group -- I don't know the answer I'm afraid.

Peter
 

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