I am attempting to develope classes that are dedicated to each office document. With this class I will have it passed information from the database of stored procedure names and format information. When the user presses a button the document information for the report they want will be sent to this class creating a document with up to date information. Only one problem. I am for some reason not able to figure out how to add children nodes to a document. Here is a function that I have been working on.
Public
documentPart = pptPackage.GetPart(documentUri)
nsManager.AddNamespace(
slideUri = PackUriHelper.ResolvePartUri(documentPart.Uri, relation.TargetUri)
slidePart = pptPackage.GetPart(slideUri)
doc.Load(slidePart.GetStream())
newSlide.InnerText.Insert(0, title)
newSlide.InsertAt(DocElement, position)
Any help would be apreciated and would definately save the government in paper costs.
Thanks
James