473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

swing- How do I read *.doc (MS Word) into JTextPane?

I'm using the apache POI to read MSWord 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)?
Mar 31 '12 #1
0 1342

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rameshwari | last post by:
Hi, I would like to read a ms-word document using python. Basically the word document contains number of tables and the rows in each table do not have same number of columns. Does anyone...
1
by: livinginmatrix | last post by:
Hi, forum i have all the necessary code to open a word file but i need the sentence to read the text of the word file, to convert it into a text file... Thanks in advance. Newbie
2
by: I_AM_DON_AND_YOU? | last post by:
Can BinaryReader Object read the Word file?
8
by: Tim Murphy | last post by:
How do you read/write a Word document embedded in an OLE Object field in an Access table with VB.NET? I have an Access application where users are creating and editing Word documents that are...
3
by: Jay | last post by:
Hi, I need to read word document file in ASP.net and place it in a text box . How to do it ? i tried : Word.Application app = new Word.ApplicationClass(); object nullobj =...
1
by: SJ | last post by:
Dear Friends, In my Asp file I have the binary for a Microsoft Word document that I read from an email attachement. Does anyone know how I can get the text out of the binary format? Do I have...
1
by: kumarm | last post by:
Hi I need some help reagrding how to read word document line by line using vb.net program?. I have a word object created by using vb.net program which opens a word document.Using this object my...
4
by: Alexander Vasilevsky | last post by:
Need to read Word file without Office installation. It's possible? http://www.alvas.net - Audio tools for C# and VB.Net developers
1
by: jojee | last post by:
how to read the word document in c# line by line. till now i have read the whole document into a string buw how can i read the document line by line without disturbance of the order
1
by: Mohd Nazim Quadri | last post by:
can i read word document file by php?if, yes then tell me how?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.