wood burning stoves 2.0*
The moose likes Java in General and the fly likes empty lines in a document. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "empty lines in a document." Watch "empty lines in a document." New topic
Author

empty lines in a document.

Thyagarajan Ramanujam
Greenhorn

Joined: Mar 24, 2008
Posts: 25
Hi,

I am writing some data into a file along some pictures. Suppose if a file can have 50 lines and already there is some text in 30 lines. Then I have to insert a picture which has a height which will be greater than 20 lines. In this case, the image should be written in the next page in the same document.

What should be done in this case?

Thanks. Any help is appreciated.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

What type of document are you writing to?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Thyagarajan Ramanujam
Greenhorn

Joined: Mar 24, 2008
Posts: 25
MS word document.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are you using the Apache POI library? It has a decent set of API calls which may help you with this.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3420
    
  12
Or you can try some of the suggestions here


Joanne
 
 
subject: empty lines in a document.
 
Similar Threads
Content (MIME)type in websphere
Newbie-Quest. How to split window in frames
JDOM parsing and memory
Parsing the documents
number of lines in a document