Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
forcing date to excel | Excel Worksheet Functions | |||
Forcing Excel to retain red text? | Excel Discussion (Misc queries) | |||
Forcing Excel to update, or recalculate. | Excel Programming | |||
Forcing a postcode in Excel 2003 | Excel Programming | |||
Forcing worksheets to be closed first when user trying to close excel | Excel Programming |