gridview and powerpoint automation

  • Thread starter Thread starter HibernatingBear
  • Start date Start date
H

HibernatingBear

Hello,

I've been driving myself nuts trying to find a solution to this. I'm
still a relative newbie to C#, and would be grateful for any helpful
suggestions.

I'm trying to find a way to create a gridview from a Web application
to an automated powerpoint slide. If that is not possible, then
reading the gridview items to a table created in powerpoint, all in
C#. Have searched Google many times, results ranged from "can't be
done" to "I've done it" with no sample code. However, there was lots
on exporting a gridview to Excel, which is not what I'm looking for.

I've looked on the Microsoft Knowledge Base at http://support.microsoft.com/?kbid=303718
and created their sample slides on my machine, and am trying to go
beyond that. I've also looked at their "Discussions in Automation"
and "Discussions in PowerPoint" but there's not a whole lot I can use.

Thanks!
 
HibernatingBear,

Are you saying that from within a web page, you want to create a
powerpoint presentation? Or are you trying to create a presentation on the
server and serve it up to the user?
 
Yes, the first one was correct, I am trying to create a powerpoint
presentation from within a web page. The user clicks a button and the
powerpoint slides are created automatically using information from the
web page.

Sorry this was not more clear. I feel like I've been chasing my tail!
 
HibernatingBear,

Without embedding an ActiveX control in the page, or a .NET control
which has the appropriate security settings, this is not possible, as it
will require starting a new process from the browser, which isn't possible
except with the appropriate permissions.

You could trigger a request to the server based on an action on the page
(navigating to a new page) and then return a new powerpoint presentation
which is generated on the server, but that's about as good as you can do.
 
Thank you for your explanation!

Now I really know MS .NET was just teasing me when I tried to add a
table with blah.blah.AddShapes.Table(type, top, bottom, left, right)
or something similar. Would usually tell me that it wants a type, but
give little clue as to what kind.
 
Back
Top