export web page to powerpoint

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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,
 
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.

Best place to start: Post example code that works in Excel and examples of
what's not working with PPT. Describe what's not working.
 
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.
 
Again, we can't go anywhere w/o a more detailed description of what you're doing,
how, and what is/isn't working.
 
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:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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>
 
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
 
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?
 
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.
 
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.
 
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 the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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.
 
Here's the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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


 
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:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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
 
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 said:
Here's the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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.

:

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
 
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:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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
================================================
 
It might be best to ask on a ColdFusion newsgroup what this does and by what
mechanism it drops a line of text into PowerPoint.

My guess is that it's simply writing a text file named "FileName.ppt" and containing
the single line "Hello World"

That would explain what you're getting. PowerPoint can import text files in a
specific way (each new line becomes a heading of a new slide, lines indented with
tabs become bullet points and so on). PPT's smart enough to recognize that a file is
plain text and not really a PPT file even if it has a PPT extension.

If this is what's happening then you'll need to look for another way of doing the
job. This can't do anything beyond slide titles and bullet points. You won't be
able to use it to bring in graphics.

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:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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.
:

Here's the code.
<CFCONTENT TYPE = "application/vnd.ms-powerpoint">
<CFHEADER NAME = "Content-Disposition" VALUE="inline; filename=FileName.ppt">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office: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.



:

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
 

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

Back
Top