473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

running Word/Excel in silent mode with Office XP PIAs

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
Nov 15 '05 #1
4 6738
"Bob" <pl****@post.here> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
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

--
Please post questions to the newsgroup - everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to http://www.microsoft.com/info/cpyright.htm
Bore yourself to tears -- http://blogs.gotdotnet.com/ptorr
Nov 15 '05 #2
Hi Peter... Glad to see "TorrBoy" here.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3
Bob

"Peter Torr (MS)" <pt***@microsoft.com> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
"Bob" <pl****@post.here> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
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

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
Nov 15 '05 #4
"Bob" <pl****@post.here> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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

--
Please post questions to the newsgroup - everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to http://www.microsoft.com/info/cpyright.htm
Bore yourself to tears -- http://blogs.gotdotnet.com/ptorr
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ken | last post by:
Hi, I'm trying to access the values of properties -- summary and custom without opening Word to do a cleanup op but the customer i'm doing it for only has Office 2000. I'm using c# in .net 2003...
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
6
by: Chris | last post by:
Hi, - How can I open an existing word document from a C#-client and manipulate that document from within the C#-client ? - How can I open an excel document that is embedded in a word-document...
5
by: Ugo | last post by:
Hi, Can anyone help? I am creating an Excel file in asp.net and when I set the PageSetup.Orientation I get the following error. Unable to set the Orientation property of the PageSetup class...
1
by: webstuff | last post by:
Hi, I'm getting a 'Type mismatch' exception when calling the Word.Application.Documents.Open method when using the Office XP 2003 PIAs. the actual error is: ...
1
by: Kaytrim | last post by:
I have an application that puts data into an Excel spreadsheet. It then opens a Word doc that reads the data and either prints the resulting form letters or keeps the file open for viewing. This...
2
by: James | last post by:
I am doing some Excel 2000 automaton using Vb 2005. I am referencing the Excel 9.0 COM Object Library. The following code was working fine: Dim xlApp as new Excel.Application Dim xlWb as...
6
by: Gilbert Tordeur | last post by:
Hello ! My web application generates an Excel sheet on the server. Then I would like to generate a pdf file from this Excel sheet. How can I do ? Thank you for your help, Gilbert
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.