in reply to generating powerpoint documents

I have no idea how to generate them directly; maybe you could use OLE/COM to "remote control" PowerPoint into creating the file for you.

An alternative would be to generate files for OpenOffice or Apple's Keynote (if you're working on MacOS X). Both formats are XML-based. If you generate an OpenOffice file, you might use OpenOffice to convert it to a PowerPoint file.