Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...