Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Forcing Excel Closed

I'm starting a new Vb.Net project and I will be using Office Automation
(Excel only) with a web service to open and prints excel docs for users.

How can I be sure excel closes after it prints and if it doesn't how do I
forcibly close excel without rebooting the server or stopping the Web service?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Forcing Excel Closed

John,
Have you tried:
Application.Quit?

Henry


"John" wrote in message
...
I'm starting a new Vb.Net project and I will be using Office Automation
(Excel only) with a web service to open and prints excel docs for users.

How can I be sure excel closes after it prints and if it doesn't how do I
forcibly close excel without rebooting the server or stopping the Web
service?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Forcing Excel Closed

I'm looking to use this If excel locks up or has an an unknown message. Will
application.Quit still close it without causing problems in the webservice if
Excel has an unknown message or wont respond?

"Henry" wrote:

John,
Have you tried:
Application.Quit?

Henry


"John" wrote in message
...
I'm starting a new Vb.Net project and I will be using Office Automation
(Excel only) with a web service to open and prints excel docs for users.

How can I be sure excel closes after it prints and if it doesn't how do I
forcibly close excel without rebooting the server or stopping the Web
service?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Forcing Excel Closed

John,

Sorry, I don't know the answer to that one. I've no experience with
webservices.
Application.Quit is the usual way to quit Excel and is fairly bombproof.
However, if there is a problem with the webservice, I have no idea what the
effect will be. I suppose that would depend on what the problem with the
webservice is. Could you arrange for the webservice to time out after Excel
closes?

Henry


"John" wrote in message
...
I'm looking to use this If excel locks up or has an an unknown message.
Will
application.Quit still close it without causing problems in the webservice
if
Excel has an unknown message or wont respond?

"Henry" wrote:

John,
Have you tried:
Application.Quit?

Henry


"John" wrote in message
...
I'm starting a new Vb.Net project and I will be using Office Automation
(Excel only) with a web service to open and prints excel docs for
users.

How can I be sure excel closes after it prints and if it doesn't how do
I
forcibly close excel without rebooting the server or stopping the Web
service?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Forcing Excel Closed

John,
Have you tried this

Dim E1 As Excel.Application

E1.Application.Workbooks(<name).Close()

I am trying to call a web service from an Excel VB application also.
However, when I define the usernameToken before I call the web service, I get
a runtime message "Execution Permission Cannot be Acquired". Have you run
into this?
Thanks
Guha

"John" wrote:

I'm starting a new Vb.Net project and I will be using Office Automation
(Excel only) with a web service to open and prints excel docs for users.

How can I be sure excel closes after it prints and if it doesn't how do I
forcibly close excel without rebooting the server or stopping the Web service?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
forcing date to excel Daniel Excel Worksheet Functions 1 September 28th 07 03:12 AM
Forcing Excel to retain red text? Sigi Rindler Excel Discussion (Misc queries) 1 March 23rd 06 08:33 AM
Forcing Excel to update, or recalculate. Fleone Excel Programming 1 March 17th 05 02:04 AM
Forcing a postcode in Excel 2003 Scott Excel Programming 2 March 10th 05 02:16 PM
Forcing worksheets to be closed first when user trying to close excel Simon Lloyd[_603_] Excel Programming 0 November 6th 04 11:05 AM


All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"