I'm using the apache POI to read MSWord documents. I'm using this example as a template:
http://javamix.wordpre ss.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)?
http://javamix.wordpre ss.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)?