toofarsideways
toofarsideways

Reputation: 3972

PowerPoint programmatically add and remove metadata?

I'm wondering if it's possible to store metadata in PowerPoint files using C#? It should be able to store a reasonably large amount of data.

Upvotes: 1

Views: 1029

Answers (1)

Steve Rindsberg
Steve Rindsberg

Reputation: 51

Sure ... should be possible with C# or any other language that can automate PowerPoint.

Every presentation, slide and shape has a .Tags collection (name/value pairs of strings) that can hold pretty much as much data as you want to pour in. When I tested this long ago, I found that relatively few tags holding lots of data each was more efficient than huge numbers of tags each with small bits of data. This was with 1 to 1.5 megabytes of string data.

As of PPT 2007 or so, there's a programmatic interface to binary tags also, but I've never used them so can't give much advice.

I would DEFINITELY avoid storing much data as document properties. Overloading doc props can have unwanted side effects on links.

Upvotes: 1

Related Questions