<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reading Microsoft Word Document in JAVA</title>
	<atom:link href="http://www.hiteshagrawal.com/java/reading-word-document-in-java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java</link>
	<description>Software Programming and Tutorials</description>
	<lastBuildDate>Mon, 15 Mar 2010 18:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shady</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-16969</link>
		<dc:creator>shady</dc:creator>
		<pubDate>Thu, 07 Jan 2010 06:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-16969</guid>
		<description>plzzzz quickly i need help : i use 2 files .file with header  and file without header when i enter the file that without header give me this error java.io.IOException: Invalid header signature; read 0x665C316674725C7B, expected 0xE11AB1A1E011CFD0
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:107)
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:151)
        at wordtotext.Main.main(Main.java:30)
and the second file run good plz helpme</description>
		<content:encoded><![CDATA[<p>plzzzz quickly i need help : i use 2 files .file with header  and file without header when i enter the file that without header give me this error java.io.IOException: Invalid header signature; read 0&#215;665C316674725C7B, expected 0xE11AB1A1E011CFD0<br />
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:107)<br />
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:151)<br />
        at wordtotext.Main.main(Main.java:30)<br />
and the second file run good plz helpme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neeke</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-16378</link>
		<dc:creator>neeke</dc:creator>
		<pubDate>Sun, 27 Dec 2009 08:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-16378</guid>
		<description>Thank you very much.</description>
		<content:encoded><![CDATA[<p>Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-14731</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-14731</guid>
		<description>&lt;a href=&quot;#comment-13080&quot; rel=&quot;nofollow&quot;&gt;@Ankur Raiyani  &lt;/a&gt; 
Did you have any luck getting apache POI to insert images into a word document. I am trying to do the same thing.</description>
		<content:encoded><![CDATA[<p><a href="#comment-13080" rel="nofollow">@Ankur Raiyani  </a><br />
Did you have any luck getting apache POI to insert images into a word document. I am trying to do the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gokul</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13341</link>
		<dc:creator>gokul</dc:creator>
		<pubDate>Thu, 10 Sep 2009 09:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13341</guid>
		<description>hi,

I have executed ur java program to read word document. it works fine , but if the word document hava a Tables. your code produce a malicious script and code runs infinte loop.

please tell me is there any methods to read a data from a tables in word Document.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I have executed ur java program to read word document. it works fine , but if the word document hava a Tables. your code produce a malicious script and code runs infinte loop.</p>
<p>please tell me is there any methods to read a data from a tables in word Document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shriddha</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13328</link>
		<dc:creator>Shriddha</dc:creator>
		<pubDate>Thu, 27 Aug 2009 09:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13328</guid>
		<description>getting error:
java.lang.NoClassDefFoundError: org/apache/poi/hpsf/WritingNotSupportedException</description>
		<content:encoded><![CDATA[<p>getting error:<br />
java.lang.NoClassDefFoundError: org/apache/poi/hpsf/WritingNotSupportedException</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sulabh</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13298</link>
		<dc:creator>Sulabh</dc:creator>
		<pubDate>Tue, 04 Aug 2009 11:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13298</guid>
		<description>what I exactly need is ...
&lt;strong&gt;dgd&lt;/strong&gt; gedgfe
rbr brbr &lt;strong&gt;gbntghth&lt;/strong&gt;
rghh &lt;em&gt;rtfhtyh bnfgh&lt;/em&gt;
that is each word having different font properties</description>
		<content:encoded><![CDATA[<p>what I exactly need is &#8230;<br />
<strong>dgd</strong> gedgfe<br />
rbr brbr <strong>gbntghth</strong><br />
rghh <em>rtfhtyh bnfgh</em><br />
that is each word having different font properties</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sulabh</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13297</link>
		<dc:creator>Sulabh</dc:creator>
		<pubDate>Tue, 04 Aug 2009 11:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13297</guid>
		<description>Hi friends,

I am trying to change the font size of a text.
To do this I am writing one HWPF stream to another and hence can change the font, but what I exactly need is to have different font(and/or size) for each word/paragraph. Basically to have more than one font size in a single piece of word file.
Can anybody please tell me how to go about doing this ??</description>
		<content:encoded><![CDATA[<p>Hi friends,</p>
<p>I am trying to change the font size of a text.<br />
To do this I am writing one HWPF stream to another and hence can change the font, but what I exactly need is to have different font(and/or size) for each word/paragraph. Basically to have more than one font size in a single piece of word file.<br />
Can anybody please tell me how to go about doing this ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miche</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13264</link>
		<dc:creator>miche</dc:creator>
		<pubDate>Sun, 19 Jul 2009 01:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13264</guid>
		<description>hello! im really lost... i am very new to this poi but i have to use this for my project which is to read a word doc using java... how can i &quot;import&quot; the package for org.apache.poi? i have downloaded the poi-3.5-beta6 and it asked me to install ant and forrest.. it asked me to set the environment variable to ANT_HOME and FORREST_HOME.. please help me.. im confused!</description>
		<content:encoded><![CDATA[<p>hello! im really lost&#8230; i am very new to this poi but i have to use this for my project which is to read a word doc using java&#8230; how can i &#8220;import&#8221; the package for org.apache.poi? i have downloaded the poi-3.5-beta6 and it asked me to install ant and forrest.. it asked me to set the environment variable to ANT_HOME and FORREST_HOME.. please help me.. im confused!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devday</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13263</link>
		<dc:creator>devday</dc:creator>
		<pubDate>Sat, 18 Jul 2009 06:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13263</guid>
		<description>Hi friends,

On executing this code am getting the following error.can anyone tell me how to resolve this problem. 



java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:78)
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)</description>
		<content:encoded><![CDATA[<p>Hi friends,</p>
<p>On executing this code am getting the following error.can anyone tell me how to resolve this problem. </p>
<p>java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes<br />
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:78)<br />
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren Slevin</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13257</link>
		<dc:creator>Darren Slevin</dc:creator>
		<pubDate>Wed, 15 Jul 2009 21:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13257</guid>
		<description>Hi Hitesh,

where do I store the POI-3.0.2-Final.jar and poi-scratchpad-3.0.2-FINAL-20080204.jar files. I am just trying to get the example above working. Cheers for the help.

Darren</description>
		<content:encoded><![CDATA[<p>Hi Hitesh,</p>
<p>where do I store the POI-3.0.2-Final.jar and poi-scratchpad-3.0.2-FINAL-20080204.jar files. I am just trying to get the example above working. Cheers for the help.</p>
<p>Darren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabhu</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13250</link>
		<dc:creator>prabhu</dc:creator>
		<pubDate>Sat, 11 Jul 2009 07:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13250</guid>
		<description>Sathish Raja,

Have you fixed the issue, if fixed please post the steps</description>
		<content:encoded><![CDATA[<p>Sathish Raja,</p>
<p>Have you fixed the issue, if fixed please post the steps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathish Raja</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13248</link>
		<dc:creator>Sathish Raja</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13248</guid>
		<description>hi friends,
Can anyone help me in this.........i had use this code and i m geting this exceptions......i am using poi-2.5.1-final-20040804.jar.and poi-scratchpad-3.5-beta5-20090219.jar files........how to specify the location path in source code.....i had kept the file in desktop

java.io.IOException: Invalid header signature; read 85966670672, expected -2226271756974174256
	at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:88)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)
	at rb.action.FileRead.main(FileRead.java:15)</description>
		<content:encoded><![CDATA[<p>hi friends,<br />
Can anyone help me in this&#8230;&#8230;&#8230;i had use this code and i m geting this exceptions&#8230;&#8230;i am using poi-2.5.1-final-20040804.jar.and poi-scratchpad-3.5-beta5-20090219.jar files&#8230;&#8230;..how to specify the location path in source code&#8230;..i had kept the file in desktop</p>
<p>java.io.IOException: Invalid header signature; read 85966670672, expected -2226271756974174256<br />
	at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:88)<br />
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)<br />
	at rb.action.FileRead.main(FileRead.java:15)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik venkat</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13236</link>
		<dc:creator>Karthik venkat</dc:creator>
		<pubDate>Thu, 02 Jul 2009 15:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13236</guid>
		<description>How do I read word comments and bookmarks using Java? Do u have a sample code? Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>How do I read word comments and bookmarks using Java? Do u have a sample code? Any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur Raiyani</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-13080</link>
		<dc:creator>Ankur Raiyani</dc:creator>
		<pubDate>Thu, 21 May 2009 04:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-13080</guid>
		<description>Hello hitesh,

thanks for sharing this example. I have a different requirement with word file. I want to add an image into word document using POI, but don&#039;t know how to do this.

Thanks,
Ankur Raiyani</description>
		<content:encoded><![CDATA[<p>Hello hitesh,</p>
<p>thanks for sharing this example. I have a different requirement with word file. I want to add an image into word document using POI, but don&#8217;t know how to do this.</p>
<p>Thanks,<br />
Ankur Raiyani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amit</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-12125</link>
		<dc:creator>amit</dc:creator>
		<pubDate>Thu, 09 Apr 2009 13:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-12125</guid>
		<description>java.io.IOException: Unable to read entire header; 6 bytes read; expected 512 bytes
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:78)
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)
        at org.apache.poi.hwpf.HWPFDocument.verifyAndBuildPOIFS(HWPFDocument.java:133)
        at org.apache.poi.hwpf.HWPFDocument.(HWPFDocument.java:146)
        at transactionDB.changeFormat.main(changeFormat.java:45)

Error display what i have to do tell me please</description>
		<content:encoded><![CDATA[<p>java.io.IOException: Unable to read entire header; 6 bytes read; expected 512 bytes<br />
        at org.apache.poi.poifs.storage.HeaderBlockReader.(HeaderBlockReader.java:78)<br />
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:83)<br />
        at org.apache.poi.hwpf.HWPFDocument.verifyAndBuildPOIFS(HWPFDocument.java:133)<br />
        at org.apache.poi.hwpf.HWPFDocument.(HWPFDocument.java:146)<br />
        at transactionDB.changeFormat.main(changeFormat.java:45)</p>
<p>Error display what i have to do tell me please</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laker</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-12093</link>
		<dc:creator>laker</dc:creator>
		<pubDate>Tue, 24 Mar 2009 11:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-12093</guid>
		<description>Hi,
Thanks for this post, it&#039;s very useful.
I&#039;m trying to find a word on my word file after reading the file.
How can i do it??

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for this post, it&#8217;s very useful.<br />
I&#8217;m trying to find a word on my word file after reading the file.<br />
How can i do it??</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slim</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-12092</link>
		<dc:creator>slim</dc:creator>
		<pubDate>Tue, 24 Mar 2009 10:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-12092</guid>
		<description>hi,
thanks for the answer.
the script work very well. 
what&#039;s the effect of using &quot;paragraphs[i] = paragraphs[i].replaceAll(&quot;\\cM?\r?\n&quot;,&quot;&quot;);&quot;

thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
thanks for the answer.<br />
the script work very well.<br />
what&#8217;s the effect of using &#8220;paragraphs[i] = paragraphs[i].replaceAll(&#8220;\\cM?\r?\n&#8221;,&#8221;");&#8221;</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh Agrawal</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-12064</link>
		<dc:creator>Hitesh Agrawal</dc:creator>
		<pubDate>Wed, 18 Mar 2009 16:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-12064</guid>
		<description>Hi Slim,
Just place the hello.doc where .class file resides. If you are putting the doc file at another location than specify the location path in the source code. IT will work fine.

Thanks,
Hitesh Agrawal</description>
		<content:encoded><![CDATA[<p>Hi Slim,<br />
Just place the hello.doc where .class file resides. If you are putting the doc file at another location than specify the location path in the source code. IT will work fine.</p>
<p>Thanks,<br />
Hitesh Agrawal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slim</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-12056</link>
		<dc:creator>slim</dc:creator>
		<pubDate>Wed, 18 Mar 2009 09:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-12056</guid>
		<description>after running this code excption &quot;java.io.FileNotFoundException: hello.doc (The system cannot find the file specified) &quot; was genereted
so where do i must place hello.doc (i created it on my desktop)  thankss</description>
		<content:encoded><![CDATA[<p>after running this code excption &#8220;java.io.FileNotFoundException: hello.doc (The system cannot find the file specified) &#8221; was genereted<br />
so where do i must place hello.doc (i created it on my desktop)  thankss</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh Agrawal</title>
		<link>http://www.hiteshagrawal.com/java/reading-word-document-in-java/comment-page-1#comment-10912</link>
		<dc:creator>Hitesh Agrawal</dc:creator>
		<pubDate>Fri, 19 Dec 2008 06:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.hiteshagrawal.com/?p=121#comment-10912</guid>
		<description>Hi Nishikanta,
I have uses POI-3.0.2-Final.jar and poi-scratchpad-3.0.2-FINAL-20080204.jar package for this code.</description>
		<content:encoded><![CDATA[<p>Hi Nishikanta,<br />
I have uses POI-3.0.2-Final.jar and poi-scratchpad-3.0.2-FINAL-20080204.jar package for this code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
