Cross your fingers.

seriously. if you set cont type to something which the file is not (like in
your case html is not an xml spreadsheet whatever you are trying to claim).
If you want to have a certain type of file to be open with certain app you
have to configure the client machine to associate this type with that app.
Or use an existing association (s.a. the csv hack proposed)

fedor.

-------------------------------
Amicus Plato amicus Aristoteles magis amica veritas

> -----Original Message-----
> From: Wei Ru [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 10, 2001 1:05 PM
> To: [EMAIL PROTECTED]
> Subject: MS Excel and setContentType 
> 
> 
> Hi,
> 
> I am trying to generate a report using html and open it on the browser
> by MS Excel. I am trying to use 
> data.setContentType("application/vnd.ms-excel"); then feed the content
> some dynamicly generated html text
> Can any one suggest me a best way to do that?
> 
> Thanks
> 
> Wei Ru
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to