Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28
  1. #21
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  2. #22
    heartysnowy's Avatar
    heartysnowy is offline Member
    Join Date
    Nov 2008
    Posts
    37
    Rep Power
    0

    Default

    eh...As u can see, my program is able to concatenate the words so now i would like to set alligmnet to all those concatenated paragraphs.

  3. #23
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    I'm sorry, but like I said before, you are not creating a word document, you are simply creating another text document and giving it the ".doc" extension, which will force the system (if the file associations are configured that way, which they usually are) to use Word to open it, but it is still only a text document. A text document doesn't have any kind of alignment.

    You could indent the first line of a paragraph with a few simple spaces, but that's about it.
    Last edited by masijade; 11-19-2008 at 09:19 AM.

  4. #24
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Once you use *.doc extension you can see that icon is also same as the normal word document. But it's not the same. You cannot workout in this way, if you want to deal with formatting, because as masijade says it's just a text file. I think in one of the previous post someone say about POI project.

  5. #25
    heartysnowy's Avatar
    heartysnowy is offline Member
    Join Date
    Nov 2008
    Posts
    37
    Rep Power
    0

    Default

    oh yea...i forgot the fact that the system is not creating the .doc .:o
    Thanks again for clarifying my questions and doubts. rep ya all:)

  6. #26
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  7. #27
    heartysnowy's Avatar
    heartysnowy is offline Member
    Join Date
    Nov 2008
    Posts
    37
    Rep Power
    0

    Default

    yep still reading abt POI at //poi.apache.org/

  8. #28
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [SOLVED] How do I read from a text file
    By matzahboy in forum New To Java
    Replies: 5
    Last Post: 11-17-2008, 05:47 AM
  2. How to Modify,Delete data in File Txt???
    By hungleon88 in forum Advanced Java
    Replies: 9
    Last Post: 09-24-2008, 04:19 AM
  3. find and replace text from a text file
    By gezzel in forum New To Java
    Replies: 2
    Last Post: 09-19-2008, 05:04 PM
  4. Replies: 40
    Last Post: 07-04-2008, 09:41 AM
  5. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 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
  •