Question

i have a single powerpoint slide that we use for reporting. This slidehas some tables and some textboxes with bulletted lists

We are trying to see if we can update this powerpoint slide (update text in textbox and update text in tables) using C# as we now have a lot of the data that we manually add to this slide in a SQL database.

so i basically need to:

  1. load up current presentation and this single slide (treat it like a template)
  2. access textboxes and clear current text
  3. enter new text from my data source (happens to be SQL server)
  4. update tables
  5. save as specific filename

what is the best way of doing this from C#. i want to basically have a button in a webpage or a winforms app that kicks off the steps above.

Update

Looking for a FREE solution if possible (a few answers below are paid third party libraries)

Was it helpful?

Solution

If you are working with any PowerPoint file formats (including the default one used by PowerPoint 2003), you have to use Microsoft Office & PowerPoint Interops. There are probably some third party libraries, but I'm not sure they will be very helpful in this particular situation, except if you don't want to or can't install Microsoft Office on the server.

If you use only the new PowerPoint 2007 format or 2003/2007 XML format, then changing the XML directly may be the easiest way, thus this does not require Microsoft Office to be installed on the server.

OTHER TIPS

You may want to look at Aspose for .NET. It provides a ton of libraries for interfacing with Office file formats.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top