On Tue, 18 Aug 2015, Shiva Kumar wrote:
I am trying to retrieve a PackagePart object from OPCPackage, I am using
below code right now.

is there any direct methods like:

oPkg.getPart("/word/styles.xml");

No. Best bet is to look up the relationship that links the document to the style, then call PackagePart.getRelatedPart(relation). The OPC way is generally to do things by the relations, not by absolute names

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to