Thank you for the reply Nick. As u said i tried  with a different doc file.
now i get different error.

java.io.IOException: Read error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at java.io.PushbackInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at
org.apache.poi.hwpf.HWPFDocumentCore.verifyAndBuildPOIFS(HWPFDocumentCore.java:95)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:174)
        at setm.<init>(marg.java:38)
        at marg.main(marg.java:22)

please if you can tell me how to use setMargin() or if i am not opening the
word document correctly.
Thanx


--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/How-to-change-margins-of-a-word-document-tp5710067p5710086.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to