On Thu, 11 Oct 2007, Luiz Antonio Falaguasta Barbosa wrote:
What I need is read a template .PPT file, identify its keys, select each value (from the database) that fits to each key of the file and generate a new file, based on the template, with the values selected by the user inside it.
You'll need to open up your template file, then loop over all the sheets, looking at their textual content. In there, spot your template keys, and look them up. Replace the text with the version containing the values, and write back out.
The proceedure for hwpf for word docs is fairly similar, but IIRC you'll need to go all the way down to the character runs to alter the text, so it won't break the formatting
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
