Apache POI WP

doc.getRange().getSection(0).insertBefore("Apache Inserted THIS Text before the below section");		
String text = doc.getRange().text();

Aspose.Words

compositeNode.getParentNode().insertBefore(newChildNode, refChildNode);

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jun 6, 2014 at 6:43 AM by shoaibkhan, version 2