Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Exporting contents of JSP to Powerpoint

Reply
Thread Tools

Exporting contents of JSP to Powerpoint

 
 
judiphuongtu@yahoo.com
Guest
Posts: n/a
 
      03-29-2005
I am trying to open the results of my JSP page in PowerPoint. I've
tried both the following statements but it won't open in PowerPoint. I
would like a simple example of a JSP page would open in PowerPoint..
Excel would be fine too. Thanks in advance.

<%@ page contentType="application/ms-powerpoint" %>

response.setContentType("application/ms-powerpoint");

-jptu

 
Reply With Quote
 
 
 
 
Wendy S
Guest
Posts: n/a
 
      03-30-2005
<> wrote:
>I am trying to open the results of my JSP page in PowerPoint. I've
> tried both the following statements but it won't open in PowerPoint.
> <%@ page contentType="application/ms-powerpoint" %>
> response.setContentType("application/ms-powerpoint");


See: http://www.iana.org/assignments/media-types/

This works:
<%@ page contentType="application/vnd.ms-powerpoint" %>

--
Wendy



 
Reply With Quote
 
 
 
 
judiphuongtu@yahoo.com
Guest
Posts: n/a
 
      03-30-2005
Thanks Wendy. It opened in PowerPoint. Unfortunately, only the text
values displayed, not the images and graphs

Wendy S wrote:
> <> wrote:
> >I am trying to open the results of my JSP page in PowerPoint. I've
> > tried both the following statements but it won't open in

PowerPoint.
> > <%@ page contentType="application/ms-powerpoint" %>
> > response.setContentType("application/ms-powerpoint");

>
> See: http://www.iana.org/assignments/media-types/
>
> This works:
> <%@ page contentType="application/vnd.ms-powerpoint" %>
>
> --
> Wendy


 
Reply With Quote
 
Wendy S
Guest
Posts: n/a
 
      03-30-2005
<> wrote:
> Thanks Wendy. It opened in PowerPoint. Unfortunately, only the text
> values displayed, not the images and graphs


When a web browser displays a page, it receives the HTML and then makes a
separate report for each image. Apparently, PowerPoint will load HTML, but
won't go so far as to request the images.

What problem are you trying to solve with this? There might be a better
solution...

--
Wendy


 
Reply With Quote
 
dc
Guest
Posts: n/a
 
      03-30-2005
related, here's an example of a JSP that dynamically creates a MS-Word
document (in WordML). The browser then opens it in MS-Word.

http://dinoch.dyndns.org:7070/WordML/

source code is available.

-D



"Wendy S" <> wrote in message
news:Lvq2e.24221$v26.18830@fed1read06...
> <> wrote:
>> Thanks Wendy. It opened in PowerPoint. Unfortunately, only the text
>> values displayed, not the images and graphs

>
> When a web browser displays a page, it receives the HTML and then makes a
> separate report for each image. Apparently, PowerPoint will load HTML,
> but won't go so far as to request the images.
>
> What problem are you trying to solve with this? There might be a better
> solution...
>
> --
> Wendy
>



 
Reply With Quote
 
judiphuongtu@yahoo.com
Guest
Posts: n/a
 
      03-30-2005
DC, the example didn't run successfully. Thanks for sharing this
anyways.

 
Reply With Quote
 
judiphuongtu@yahoo.com
Guest
Posts: n/a
 
      03-30-2005
My webpage generates graphs with table data. Users want to use
snapshots of these graphs in their PowerPoint presentations. The
graphs are PNG images. The current solution is to have them save the
graph in their local drive and use Insert, Picture from PowerPoint and
also select the table data and paste it in PowerPoint. I thought
perhaps I could find a way to automate it.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding contents on yaml file without overwriting actual contents Kamarulnizam Rahim Ruby 4 01-28-2011 09:10 AM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
Problem in exporting HTML contents to EXCEL page using JSP SMuthaiyan@inautix.com Java 1 06-08-2005 04:39 PM
open powerpoint slide file in JSP cschang Java 1 04-06-2005 01:14 PM
Can I restrict both attribute contents and element contents in schema Don Adams XML 1 03-05-2004 12:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57