Re: Populating data dynamically from the DB using Apache FOP

2010-02-11 Thread RithanyaLaxmi
Thanks Martin, how to fill the data from the database for the placeholders in temp.xml? Is it the data or the ResultSet needs to be converted to a XML format. My question is ,similar to Jasper reports is there any API (eitheir DOM or FOP) which takes the ArrayList (contains the data from DB)

Re: Populating data dynamically from the DB using Apache FOP

2010-02-11 Thread RithanyaLaxmi
Thanks Simon, as per your comment i need to parse the Temp.xml (which contains the placeholder) using SAX and read the data from the resultset. But how can I merge or append the data reed from DB to the Temp.xml. Once i merge the data in place of the placeholder, the temp.xml should look like:-

Re: Populating data dynamically from the DB using Apache FOP

2010-02-11 Thread Martin Jacobson
Well, theoretically you can drop the ResultSet into the Velocity context and iterate over it in the template, which is certainly the simplest way - personally, I prefer to create a List of some Bean class and iterate over that instead. But then, I'm old, cynical, and paranoid! M On 11 February

RE: Populating data dynamically from the DB using Apache FOP

2010-02-11 Thread Mario Madunic
I don't know if this will help but if you are parsing with XSLT first you could use Xalan or Saxon to grab the data from the db. Xalan has an extension that you can use easy enough but Saxon's extension can only be used from the command line. Now to take it one step further you could write your

barcode test failing

2010-02-11 Thread Venkat Reddy
Hi, I am trying to generate a PDF document with barcode in it. I am running this example on FOP trunk. When I run the sample barcode test xsl:fo file from the command prompt... *fop -fo barcodetest.fo -pdf barcodetest.pdf* I have got the following messages on the console... 11-Feb-2010

RE: How to balance table columns?

2010-02-11 Thread lexa2009
thx. yes, but i also need to know the length of each string, the length in mm of each character, the length of column to know when they break in two or more lines :) i think is is possible in automatic mode :) Mario Madunic wrote: Sorry for it to make more sense here is the xpath I would

RE: barcode test failing

2010-02-11 Thread Pete Allison
I'm using 0.94. It seems to generate correcty for me. I've attached the PDF. From: Venkat Reddy [mailto:vanukuri.ven...@googlemail.com] Sent: Thursday, February 11, 2010 7:59 AM To: fop-users@xmlgraphics.apache.org Subject: barcode test failing Hi, I am trying to generate a PDF

Re: barcode test failing

2010-02-11 Thread Venkat Reddy
Hi Pete, Thanks for your response. I have tried with FOP 0.95 version, the same problem is coming. I have generated the barcodes previously using trunk, don't know why it is failing now. Thanks, Venkat. Pete Allison wrote: I'm using 0.94. It seems to generate correcty for me. I've

Re: barcode test failing

2010-02-11 Thread Jeremias Maerki
Venkat, most probably, Barcode4J is not in the classpath. See also: http://barcode4j.sourceforge.net/2.0/fop-ext.html#Setting+up+the+barcode+extension+with+Apache+FOP+0.93+or+later Barcode4J is not (yet) bundled with FOP. On 11.02.2010 16:43:50 Venkat Reddy wrote: Hi Pete, Thanks for your

Re: barcode test failing

2010-02-11 Thread Venkat Reddy
Hi Jeremias, Jeremias Maerki wrote: Venkat, most probably, Barcode4J is not in the classpath. See also: http://barcode4j.sourceforge.net/2.0/fop-ext.html#Setting+up+the+barcode+extension+with+Apache+FOP+0.93+or+later Barcode4J is not (yet) bundled with FOP. Yes, I have missed the jar in

Re: Populating data dynamically from the DB using Apache FOP

2010-02-11 Thread Simon Pepping
Read up on SAX parsers, in the JAXP documentation, which is part of the JEE documentation. In this case the XML file is only virtual. It is constructed by your code in the form of SAX parser events. This is a fairly basic manner to do things. I do not know the other suggestions such as Velocity