:
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