On Wed, 26 Oct 2005, prakash jaya wrote:
By running the PowerPointExtractor.java class i am getting out put on console(System.out).I want to get on some text file for that i changed the PowerPointExtractor.java class and complied this class and replace this .class in the old .class in the jar(poi-scratchpad-3.0).but its giving the out put on the same target(system.out)
below my chaned code:


PrintWriter out = new PrintWriter (new FileOutputStream("d:\\vipin.txt"));
        PowerPointExtractor ppe = new PowerPointExtractor(file);
        System.out.println(ppe.getText(true,notes));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        out.println(ppe.getText(true,notes));
        out.close();
        ppe.close();
why its giving same.

Just a little bit of a "Doh!" moment on your part...

You're printing the extracted text to System.out, in addition to your file, hence you're seeing it on your screen

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to