--- launch excel

  • Thread starter Thread starter Guest
  • Start date Start date
JIM.H. said:
How can I launch excel in my asp.net application?

On the client machine or the server?

(By the way, I assume you're putting dashes at the front of your
subject lines to get them at the top of the list, or something like
that. If so, could I ask you politely not to? Imagine if everyone
decided that they wanted their post at the top of the list.)
 
When user clicks a button I need to launch excel, if there is excel in the
client I may want to return a message.

(I do not think that --- puts my post at the top. I think It is by DateTime.
The reason I have --- so that I can easily see my posts, if it causes any
problem I can just give up)
 
JIM.H. said:
When user clicks a button I need to launch excel, if there is excel in the
client I may want to return a message.

Well, you could return an Excel spreadsheet with an appropriate mime
type, and with any luck Excel will launch. That's the best you can do
though, as far as I know.
(I do not think that --- puts my post at the top. I think It is by DateTime.

That entirely depends on your newsreader. The way I've got mine set up,
it's sorted by subject.
The reason I have --- so that I can easily see my posts, if it causes any
problem I can just give up)

It just makes things a bit messy. Not a big problem when one person
does it - just not nice when lots of people decide to do the same
thing.

I'd thoroughly recommend using a proper newsreader if you can. I use
Gravity, which is free, and allows me to easily see replies to my posts
etc via rules.
 
How should I launch? can you give code example?

Jon Skeet said:
Well, you could return an Excel spreadsheet with an appropriate mime
type, and with any luck Excel will launch. That's the best you can do
though, as far as I know.


That entirely depends on your newsreader. The way I've got mine set up,
it's sorted by subject.


It just makes things a bit messy. Not a big problem when one person
does it - just not nice when lots of people decide to do the same
thing.

I'd thoroughly recommend using a proper newsreader if you can. I use
Gravity, which is free, and allows me to easily see replies to my posts
etc via rules.
 
JIM.H. said:
How should I launch? can you give code example?

Just give the Excel spreadsheet you want to launch as the response, and
set the mime type suitably - I don't know what the mime type should be,
off-hand. You can use HttpResponse.WriteFile to write the file to the
response.
 
Back
Top