On Mon, 21 Jan 2013, sars84 wrote:
I want to open a .docx file with POI 3.9, but I cann't found the .XWPFTestDataSamples class in POI 3.9. I searched in the packages, but no result.

XWPFTestDataSamples is only used in unit testing, to load the test files. You should do something like:

OPCPacakge pkg = OPCPackage.open("myfile.docx");
XWPFDocument doc = new XWPFDocument(pkg);

Nick

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

Reply via email to