The dependencies that I used in my maven pom.xml files include: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.9</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>ooxml-schemas</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> <version>2.3.0</version> </dependency>
So you can either update your classpath to include the above jar files, or, what I would recommend is that you use maven to handle all your dependency management. As a side note, if you have maven as your project file, you can easily move towards any other java IDE that supports it as well *cough* IntelliJ IDEA *cough*. Mike On Tue, Mar 5, 2013 at 10:52 AM, Paul C. <[email protected]> wrote: > Hi Mike, > Thanks for the post. When I was trying out your sample code, I have > difficult compiling the code. My eclipse project complaining that > STPTabRelativeTo, STHorizontalAlignment and STPTabLeader cannot be > resolved. > I do have poi-ooxml-schemas-3.7-20101029.jar on my class path. Sorry I am > new to POI. Is there something that I might be missing? > Thanks, > Paul > > > > -- > View this message in context: > http://apache-poi.1045710.n5.nabble.com/Create-Header-XWPF-tp5711976p5712242.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] > >
