https://issues.apache.org/bugzilla/show_bug.cgi?id=47523

           Summary: Cannot open output with MS Word
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P1
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


I am trying to use HWPFDocument Java class to read/write a simple Word
document. After writing with the HWPFDocument.write(OutputStream) method the
word doc is unreadable by MS Word. It is just hanging there and not able to
open the output file.

This is how I am writing the doc:

        HWPFDocument doc = new HWPFDocument(new FileInputStream(inputFile));
        FileOutputStream fos = new FileOutputStream(outputFile);
        doc.write(fos);
        fos.flush();
        fos.close();


Any help with this is greatly appreciated.
Can someone help me with this issue? I saw a similar issue in bugzilla with
number #44431. Is there any resolution or workaround for this problem?

Please help.

Thanks
Srinivas

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to