Information générale
Catégorie:
COM/DCOM et OLE Automation
Mark,
Go into PowerPoint. Start a macro. Do what you want - create the presentation and create a couple of the slides with the images on them. Stop the macro. Go into the VBA editor and look at the macro that you created. You will be able to copy most of that code directly into VFP.
Also, there is a book about Office Automation by Tamar Granor, Della Martin, and Ted Roche.
>Here's what I need to do: I have a database of jpeg images. Actually the database contains file references that point to the jpeg files. Given a set of image file names that have been culled from the database, I need to automate powerpoint and have it create a presentation, one image per slide, one caption per slide. That's it. No rocket science.
>
>I'm running into a wall trying to automate Powerpoint (or Word, or Excel) from VFP because all those predefined constants like ppLayoutBlank and ppLayoutChart are not defined for VFP. So being able to instantiate a Powerpoint automation server does me no good.
>
>Can anybody with experience in automating any of the MS Office apps from VFP point me to those elusive pieces of documentation that make the task possible from within VFP?
>
>Thanks very much for your help.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement