Solved

FOP Very Urgent

Posted on 2004-04-04
5
250 Views
Last Modified: 2010-04-17
Hi folks,

This is FOP.

I need a specific table on single page it self.
This table comes in middle of the page.
I dont want the table to span on 2 pages...
It should either be on 1 page or on page 2.

================
================
table1

table2

================
page1 ends
================

================
page 2 begins
================
table 2 contd


.......
.......
================

i dont want the above situation. Either table 2 goes on page2 or on page 1. it should not be divided between two pages...

NE clue?

Please respond asap
0
Comment
Question by:wizlokesh
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
simgron earned 250 total points
ID: 10753157
Since you need to know the length of table 2 you need to go ahead and build that, but not "print" it until you know its' length. Generally it is always clever to build larger objects prior to getting data from them, you never know how you will change your code in the future. And you have to build them anyway.

With FOP you simply build the tree that is the tables, before you decide the page layout.

Simon
0
 

Author Comment

by:wizlokesh
ID: 10754609
How do I not print it?
Do u mean we have any function which idicates that we just build it first and then call it whenever needed. to insert the table?

Do you have any example of it?

Its pretty urgent
0
 
LVL 1

Expert Comment

by:simgron
ID: 10756678
Is this the URL you are looking for http://xml.apache.org/fop/dev/implement.html ?

Regards
Simon
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now