Hi,

I am using POI 3.9. I want to create a word document using xwpf. 

I need to know, how to create document's default styles, like run style,
para style, default font etc.,

I am using the following code,

if( document.getStyles() == null) {
     XWPFStyles styles = document.createStyles();
}

CTDocDefaults def = document.getStyle().addNewDocDefaults();

The above line throws the exception like "Expecting one Styles document
part, but found".

how to clear this? please do the needful.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/xwpfdocument-default-style-tp5714728.html
Sent from the POI - User mailing list archive at Nabble.com.

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

Reply via email to