turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Crossen" <ccros...@home.com>
Subject Re: MS Excel and setContentType
Date Fri, 12 Oct 2001 20:56:42 GMT
Not that I know of. This stuff seems to be semi-documented at best.
Most of what I know I found out with trial and error experimentation.

You might try searching Microsoft's knowledge base at
http://search.microsoft.com/us/dev/default.asp

----- Original Message -----
From: "Wei Ru" <Wei.Ru@botcc.com>
To: <turbine-user@jakarta.apache.org>
Sent: Friday, October 12, 2001 1:19 PM
Subject: RE: MS Excel and setContentType


Thanks Chris,

Is there a way to open several files at the same time into several
Excel
worksheets? (but in the same/one work book)?

Thanks

Wei Ru

-----Original Message-----
From: Chris Crossen [mailto:ccrossen@home.com]
Sent: Wednesday, October 10, 2001 5:02 PM
To: turbine-user@jakarta.apache.org
Subject: Re: MS Excel and setContentType


If you have Excel on the client (and probably if you are running the
IE browser on the client), you can cause Excel to open from a page.
You are on the right track with setting the content type. Put this in
a template and try it.

$data.setContentType( "application/vnd.ms-excel" )
<table>
  <tr>
    <td>text1</td>
    <td>1</td>
  </tr>
  <tr>
    <td>text2</td>
    <td>2</td>
  </tr>
</table>

It is even possible to put special strings in the TD tags to use Excel
formatting and Excel formulas in the resulting spreadsheet. Let me
know if you want more information.

Chris

----- Original Message -----
From: "Fedor Karpelevitch" <fedor.karpelevitch@Barra.COM>
To: <turbine-user@jakarta.apache.org>
Sent: Wednesday, October 10, 2001 2:00 PM
Subject: RE: MS Excel and setContentType


> 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:Wei.Ru@botcc.com]
> > Sent: Wednesday, October 10, 2001 1:05 PM
> > To: turbine-user@jakarta.apache.org
> > 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:
turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
turbine-user-help@jakarta.apache.org
> >
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message