I’m using the apache POI to read Word documents. I’m using this example as a template:
http://javamix.wordpress.com/2009/05/14/reading-data-from-the-doc-file-by-using-apache-poi-api/
The problem is I want the contents to read into a JTextPane. And insertString() is not recognized by HWPFDocument.
From the ‘for’ statement that prints to console from the example in the link above, how do change it to print to the JTextPane (if possible)?
1 Answer