I’m interested in harvesting data from powerpoint for use in another application via xml. I’ve downloaded the demo and can’t find an example that uses templates in this fashion.
The template example you have provided instead relies on the text value in the power point text box to determine what to publish. As in…
if (th.Text == “H1”)
th.Paragraphs.Portions.Text = “Demo Presentation”;
This is OK if you want to publish to PP from another source, but this will not work going in the other direction. For example, what if I wanted collect the text in the text area containing “H1” no matter what text it contained?
It seems to me that my solution will require that my PowerPoint template have some way to “tag” text fields with some kind of meta data indicator. I suppose I could use something like substring() to check that “H1” precedes the text contained in a text area. This is somewhat less than ideal as it requires that my powerpoint users not break this. Is this making any sense? Do you have any suggestions for me? Thanks!