12-01-2004, 02:47 PM
Is it possible to generate powerpoint presentation by using VB call?
I have already search around the web, there are not enough information on this.
Anyone can provide me an insight?
12-01-2004, 03:28 PM
Just to confirm: you using VB.Net?
12-01-2004, 05:03 PM
I was to lazy to write some code myself (and little time), but here are some nice links to get you started.
Creating and running a presentation "on the fly" (from Access, but the basics are the same) LINK (http://support.microsoft.com/?kbid=209960)
An MSDN (http://support.microsoft.com/default.aspx?scid=kb;en-us;303717) article which describes automating PP from .Net
These links should give you an idea on how to handle the Powerpoint object(s),
but i you do have other and/or more specific questions, don't mind to post again... :)
12-01-2004, 09:34 PM
Thanks for providing the links. They are useful and giving my a little more idea how to go about it.
Yes. i am going to use VB.NET to do this task.
What about if i want to feed in data from XML, using VB.NET to generate powerpoint?
Any advise will be appreciate.
12-02-2004, 12:47 PM
What kind of data would you like to "feed" in the presentation ?
12-03-2004, 06:47 AM
just normal xml data.
Any advise on how to use VB.NET to do it?
12-07-2004, 07:27 AM
You can use the System.XML.XMLDocument class to read it in.
Then use a loop through the returned nodes.
Dim xmlDoc as New System.XML.XMLDocument
Dim slideNodes as System.XML.XMLNodeList
Dim slideNode as System.XML.XMLNode
slideNodes = xmlDoc.SelectNodes("/Root/Slide") 'This path will depend on your file structure
for each slideNode in slideNodes
'Create your slides here
This isn't tested but should be pretty close. you can also look at MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlnodeclassselectnodestopic.asp) for more information.