473,625 Members | 3,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Print Out(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 6751
"Bob" <pl****@post.he re> wrote in message
news:OQ******** *****@tk2msftng p13.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***@microsof t.com> wrote in message
news:en******** ******@tk2msftn gp13.phx.gbl...
"Bob" <pl****@post.he re> wrote in message
news:OQ******** *****@tk2msftng p13.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.he re> wrote in message
news:%2******** *******@TK2MSFT NGP12.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
481
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 and having trouble. I've looked on msdn and can find a pia for Office xp but no mention of Office 2000. Is this possible or do will I have to go back to VS6 and do it in VB?
8
3172
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 = "C:\\test.doc"; object readOnly = false;
6
12487
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# application. It seems simple enough, but the problem I'm encountering is as follows: In order for the user to select the cell from Excel, they must first click once on the Excel window to give it focus and then their second click is what changes the cell...
6
4077
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 ? - How do I read the value of a cell within an Excel document ? I tried using a Word-OLB file (object library) that I set a reference to but can't find the right methods I need in order to execute the above.
5
2835
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 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:...
1
11552
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: System.Runtime.InteropServices.COMException (0x80020005): Type mismatch. This method works when using the Office XP PIAs (not that this fact is
1
4794
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 uses Office XP and worked fine until I applied SP3. now it crashes with the following error. "Requested object is not available" The crash occurs when I try to set the MailMerge.Destination. If I skip setting the destination the following message...
2
5614
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 Excel.Workbook Dim xlSheet as Excel.Worksheet xlWb = xlApp.Workbooks.Add
6
1590
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
8192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8696
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8358
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7188
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1504
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.