Results 1 to 5 of 5

Thread: RTF Editor Kits

  1. #1
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default RTF Editor Kits

    I am working on a more complex word processor, and I am only in the beginning stages(saving, opening, deleting), I have got it to work on saves, opens and deletes, my problem stems from trying to open word documents.

    I get the following error when trying to open a microsoft word document
    Java Code:
    C:\Javacode\TextEditor>java TextEditor
    java.io.IOException: Too many close-groups in RTF text
    I can post the code if necessary, but it works fine when saving and opening files written with the text editor itself, do I need to do something special to open word documents?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,232
    Rep Power
    19

    Default

    I presume, although you haven't stated it, that the document you refer to was saved from Word in RTF format. (If you're trying to open a .doc file, well ...). I've experienced that Word sometimes saves malformed RTF, and the generated file is always exceedingly verbose, often containing font and color table entries that aren't used anywhere in the document.

    Try saving a very small file -- just a couple of words -- from Word, and if you still get the same error the RTF may be small enough to post here for review (in code tags of course, and with line breaks added if necessary).

    db

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Alright, I believe I solved it, the old file I was trying to open was a docx file. Im wondering, is there any way to open up .docx files in my editor?

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Quote Originally Posted by sunde887 View Post
    Alright, I believe I solved it, the old file I was trying to open was a docx file. Im wondering, is there any way to open up .docx files in my editor?
    You do realize that those could contain images, tables e.t.c?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,232
    Rep Power
    19

    Default

    is there any way to open up .docx files in my editor?
    I've never used it nor even looked at it, but I believe the OpenOffice API is capable of this.

    db

Similar Threads

  1. sql editor
    By jperson in forum JDBC
    Replies: 1
    Last Post: 07-06-2010, 03:52 AM
  2. Map Editor
    By supra s in forum Java Applets
    Replies: 8
    Last Post: 06-15-2010, 01:49 PM
  3. Sketsa SVG Editor 5.3
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 07-11-2008, 02:38 PM
  4. SWT Text Editor
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:43 PM
  5. Xml Editor
    By Marty in forum XML
    Replies: 3
    Last Post: 05-11-2007, 09:27 AM

Posting Permissions

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