Results 1 to 5 of 5

Thread: Read/Write MS Word using Java

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Read/Write MS Word using Java

    How can I read/write Microsoft Word document from Java?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Read/Write MS Word using Java



    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    New Member
    Join Date
    Jan 2009
    Posts
    2

    Re: Read/Write MS Word using Java

    Another solution:

    import officetools.OfficeFile;
    ...
    FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
    FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
    OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
    f.convert(fos,"pdf");

    All possible convertions:
    html --> pdf
    doc --> pdf, html, txt, rtf
    xls --> pdf, html, csv
    ppt --> pdf, swf
    from dancrintea.ro/html-to-pdf/

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Read/Write MS Word using Java

    And from where exactly do you import the class officetools.OfficeFile?
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    New Member
    Join Date
    Jan 2009
    Posts
    2

    Re: Read/Write MS Word using Java

    My company has bought it and it has integrated it into a project.

    This guy is providing it: http://dancrintea.ro/html-to-pdf/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width