export web page to powerpoint

J

jon

My users would like the capability to click a button on a web page and send
that page to powerpoint.
I'm not picky as to how that happens, but they do want the action to
initiate from the web page.
I currently allow them to export to Excell using "application/vnd.ms-excel",
but the same doesn't quite work with powerpoint.
Version of powerpoint: xp or 2003.
Thanks,
 
J

jon

I figured out how to get the file to open and I can write a single line, but
when I try to advance to the next line, using Char(10) or Char(13). Either
nothing happens or it sends it to the next slide, which it won't allow me to
view.
Also, if you know how to send a picture to powerpoint or excel that would
help me out a lot as well.
Thanks.
 
J

jon

What I want to do is take a *.jpg file and put it in a powerpoint slide or
put the current page that is displayed on the screen into a powerpoint slide.
So far all I can do is print a word on the powerpoint slide. Here's what I
have...

<!---this is the code that sends the data to microsoft powerpoint--->
<CFSETTING ENABLECFOUTPUTONLY = "Yes">
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:x="urn:schemas-microsoft-com:eek:ffice:powerpoint"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<TITLE>Export to Powerpoint</TITLE>
</HEAD>
<BODY>
<CFSET NewLine = Chr(13)>
<CFOUTPUT>Hello World</CFOUTPUT>
</BODY>
</HTML>
 
J

jon

And that's why I didn't post my code. Cause I new coldfusion would turn you
off. I'm currently using coldfusion, but the language I use for this can be
anything, ASP or VBA... I'm not sure how to use VBA on the web, that one will
be new for me. I imagine it would be something like javascripts. Is that
correct?
 
J

jon

Right now the code that I have, rights a single line on a PowerPoint slide. I
can't get it to line feed.
Here's a scenario to explain what I want to do.
A user comes to the website runs a report and the report produces a chart
based on data queried from a database. The user wants to use this graph for a
chart deck they will be showing to management. So they want to click a button
and have the chart show up in PowerPoint.
Now I think that this is just plain lazy because screen print and paste
isn't hard if you ask me, but the one click export is what they really want
to see.
 
J

jon

Here's the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:x="urn:schemas-microsoft-com:eek:ffice:powerpoint"
xmlns="http://www.w3.org/TR/REC-html40">

My understanding of this code, which is limited, is that the Content tag
tells it which application to work with. The Header tag names the file. And
the HTML tag tells it what language will be used to transfer the data from IE
to PowerPoint.
In this case, use a PowerPoint file named FileName.ppt and use xml as the
transfer language.
 
J

jon

I create graphs that appear on the web page. I would like to send those to
PowerPoint. The data is irrelevant. Say it's the number of lima beans caned
in a month and I graph that info and then I would like to send the graph to
PowerPoint.
And if I knew how the data was getting there, I wouldn't be here asking the
questions. How to get it there is the question I'm asking.

Steve Rindsberg said:
Here's the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:x="urn:schemas-microsoft-com:eek:ffice:powerpoint"
xmlns="http://www.w3.org/TR/REC-html40">

My understanding of this code, which is limited, is that the Content tag
tells it which application to work with. The Header tag names the file. And
the HTML tag tells it what language will be used to transfer the data from IE
to PowerPoint.
In this case, use a PowerPoint file named FileName.ppt and use xml as the
transfer language.

Still doesn't tell us what data is getting to PPT or how it's getting there.
Without that, I'm afraid I can't help.

Steve Rindsberg said:
Right now the code that I have, rights a single line on a PowerPoint slide. I
can't get it to line feed.

Got that, but by what means does the slide (and the PPT file itself) get created?



Here's a scenario to explain what I want to do.
A user comes to the website runs a report and the report produces a chart
based on data queried from a database. The user wants to use this graph for a
chart deck they will be showing to management. So they want to click a button
and have the chart show up in PowerPoint.
Now I think that this is just plain lazy because screen print and paste
isn't hard if you ask me, but the one click export is what they really want
to see.

:

And that's why I didn't post my code. Cause I new coldfusion would turn you
off. I'm currently using coldfusion, but the language I use for this can be
anything, ASP or VBA... I'm not sure how to use VBA on the web, that one will
be new for me. I imagine it would be something like javascripts. Is that
correct?

VBScript or ASP rather than VBA (the browser wouldn't support VBA but if it's MSIE, it would
support VBScript, which is similar).

But let's work out how you're trying to go about this; that's what I'm unclear on.

What's your coldfusion code do right now? From the example below, it looks like it creates
a text file, which PPT can open and convert to slides, but since txt files can't include
photos, it's a non-starter for what you want.

PowerPoint can also open some HTML files; that might get you further, but will only allow
you to create a single-slide file at a time.

Normally the way you'd do this is to automate PowerPoint to create the slides. Googling on
"automate powerpoint" should produce some results on how to do that.


:


I can tell you how to use VBA or VB to bring a JPG into PPT but I suspect this isn't
what you want. I'm guessing that you're working in ColdFusion (from all the CFThis and
CFThat tags) but you haven't mentioned that so far. Again, w/o specifics, we're
wheel-spinning ;-)

If in fact this is a ColdFusion app, you may need to look for help in a CF-specific
newsgroup. If some VB code for inserting JPGs would help, have a look here:

Insert a picture at the correct size
http://www.rdpslides.com/pptfaq/FAQ00329.htm

Batch Insert a folder full of pictures, one per slide
http://www.rdpslides.com/pptfaq/FAQ00352.htm
 
J

jon

this is the code in its entirety...

<CFSETTING ENABLECFOUTPUTONLY = "Yes">
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:x="urn:schemas-microsoft-com:eek:ffice:powerpoint"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<TITLE>Export to Powerpoint</TITLE>
</HEAD>
<BODY>
<CFOUTPUT>Hello World</CFOUTPUT>
</BODY>
</HTML>


Steve Rindsberg said:
I create graphs that appear on the web page. I would like to send those to
PowerPoint. The data is irrelevant. Say it's the number of lima beans caned
in a month and I graph that info and then I would like to send the graph to
PowerPoint.
And if I knew how the data was getting there, I wouldn't be here asking the
questions. How to get it there is the question I'm asking.

You've already stated that you can get from [wherever] to a line of text in a PPT file.
I'm trying to find out *how* you did that so we can look at whether the same technique
can be extended to do what you want.

If you don't know, then I can't help.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top