poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Help about File Information Block
Date Thu, 24 Mar 2011 22:11:34 GMT
On Thu, 24 Mar 2011, Gurkan Hosgit wrote:
> My code is;
>
> HWPFDocument doc = new HWPFDocument(new FileInputStream(wordFile));
>
> int nfibValue = doc.getFileInformationBlock().getNFib();
>
> I have different word files (Word 2000 file, word 2002 file, Word 2003 
> file), for all these files the code returns the nfib value equals to 
> 193!

I think that HWPF is correctly returning to you the value stored in your 
file. I have a nasty feeling that your problem is that word is storing the 
version of the file format (word 97+) rather that what its own version is.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message