Run excel in visible mode from aspnet

wakeup

Freshman
Joined
Nov 9, 2004
Messages
35
I can't run excel and set it visible from aspnet. This is the code.
excel = new Excel.ApplicationClass();
excel.visible = true

It don't throw any error, but excel is not visible :(
thanks
 
If you are launching excel from server side code then excel will be running on the server itself - not on the client.
When you make it visible you are making it visible on the ASPNET account's desktop - not the user logged into the server; effectively preventing you from seeing it anyway.

Any chance you could give a few more details about what you are trying to achieve as there may be an alternate solution.
 
I open excel, and run a macro excel, but it display message and I can't see this message.
Thanks
 
You probably also have a lot of instances of EXCEL.EXE in your task manager too since you have a message box that is open and waiting... office components don't dispose as easily as you would think...at least prior to 2003 or is it XP PD? You need to make sure your cleaning up your instances of Excel, server admins tend to get pretty upset when you crash a server because there are a few thousands instances of excel running.
 
Back
Top